Docker path error, nano ~/.docker/config.json

https://stackoverflow.com/questions/67642620/docker-credential-desktop-not-installed-or-not-available-in-path


(Could not find unix domain socket). Root cause NoSuchFileException (/var/run/docker.sock)

Symlink it

https://github.com/testcontainers/testcontainers-java/discussions/6045#discussioncomment-5547199

Beacause i am using colima, /Users/nishanthg/.colima/docker.sock


https://github.com/testcontainers/testcontainers-java/issues/3609


Container , why does it fail?

Yes, Docker Compose can overwrite Dockerfile instructions. When you run docker-compose up, Docker Compose will create and start containers based on the configuration in your docker-compose.yml file. If there are any conflicting instructions between the docker-compose.yml file and the Dockerfile, the instructions in the docker-compose.yml file will take precedence.

For example, if you have a Dockerfile that sets the CMD instruction to echo "Hello from the Dockerfile!", and you then have a docker-compose.yml file that sets the command instruction to echo "Hello from Docker Compose!", the container that is created and started by docker-compose up will print “Hello from Docker Compose!” when it starts up.


/usr/lib/postgresql/16/bin/pg_ctl -D /opt/postgres/data -l logfile start

db-1 | The files belonging to this database system will be owned by user “postgres”.

https://stackoverflow.com/questions/17157721/how-to-get-a-docker-containers-ip-address-from-the-host

docker inspect \
  --format '{{ .NetworkSettings.IPAddress }}' container_name_or_id

https://stackoverflow.com/questions/55522620/docker-compose-yml-container-name-and-hostname

Covered index