Hilmi Egemen Ciritoglu Personal Webpage

Docker Development Environment

Issue: Docker image not found issue for M1 processors

You could add platform (assuming you are on Rosetta):

docker pull --platform linux/x86_64 mysql

or in Dockerfile like this:

services:
  db:
    platform: linux/x86_64
    image: mysql:5.7
        

#Mysql
docker run --name docker_mysql -e "MYSQL_ROOT_PASSWORD=password_will_be_entered_here" -d -p 3306:3306 -v mysql_volume:/var/lib/mysql/ mysql

# Postgres 
docker run --name docker_postgres -e POSTGRES_PASSWORD=password_will_be_entered_here -d -p 5432:5432 -v postgres_volume:/var/lib/postgresql/data postgres

# Hadoop
docker run -p 50070:50070 -p 8088:8088 -it sequenceiq/hadoop-docker:2.7.0 /etc/bootstrap.sh -bash

More cool stuff:

# Beside from docker if you would like to test web server
python3 -m http.server