Limit useable host resources in Docker compose without swarm

Since many Docker Compose users have complained about this incompatibility of compose v3 vs v2, the team has developed compatibility mode. You can retain the same deploy structure that you provided and it will not be ignored, simply by adding the –compatibility flag to the docker-compose command (docker-compose –compatibility up), as explained here. I tested … Read more

Docker: Error response from daemon: OCI runtime create failed: container_linux.go:296:

Docker is telling you that the command hit an error. It is trying to run the node image with the command -w. Since -w is not a command, it throws this error. This is because you have written node in a place you probably didn’t mean to. Your command is being interpreted like this: docker … Read more

Permission issue with PostgreSQL in docker container

The other answer indeed points to the root cause of the problem, however the help page it points to does not contain a solution. Here is what I came up with to make this work for me: start the container using your normal docker-compose file, this creates the directory with the hardcoded uid:gid (999:999) version: … Read more

How can we install google-chrome-stable on alpine image in dockerfile using dpkg?

Installing the Chrome .deb file this way won’t work on Alpine. While the dpkg package is available in the Alpine repository, and is useful for installing lightweight Debian packages, you won’t be able to use it for installing complex Debian packages, since it’ll be impossible to satisfy many Debian dependencies. Alpine is generally not Debian … Read more

How to handle IP addresses when linking docker containers with each other using docker-compose?

You don’t have to set the IP, but you can reference the container’s virtual hostname, and this is the same value as you named your linked container. This means you can indeed set the DB_HOST from within the docker-compose.yml, either with links (recommended) or external_links: your_application: build: . ports: – “9180:80” – “9543:443” external_links: – … Read more