About 50 results
Open links in new tab
  1. Difference between "docker compose" and "docker-compose"

    Mar 7, 2021 · The docker compose (with a space) is a newer project to migrate compose to Go with the rest of the docker project. This is the v2 branch of the docker/compose repo. It's been first introduced …

  2. How does docker-compose.yml and Dockerfile work together?

    Mar 16, 2021 · The difference between Dockerfile and Compose file Docker can build images automatically by reading the instructions from a Dockerfile Compose is a tool for defining and running …

  3. How can I use environment variables in docker-compose?

    I would like to be able to use environment variables inside docker-compose.yml, with values passed in at the time of docker-compose up. This is the example. I am doing this today with a basic docke...

  4. How to use host network for docker compose? - Stack Overflow

    Jun 13, 2019 · I want to use docker compose with the host network. I have a docker container that access a local REST api. Usually I run docker run --net=host -p 18080:8080 -t -i containera which …

  5. What is the difference between docker and docker-compose

    Jun 22, 2016 · 379 The docker cli is used when managing individual containers on a docker engine. It is the client command line to access the docker daemon api. The docker-compose cli can be used to …

  6. How to use locally built image in docker-compose file correctly?

    Dec 24, 2021 · 3 I have multiple services that needs to use the same locally built image. So I created a helper service which would build the image and all other services would depend on the builder …

  7. How to specify Memory & CPU limit in docker compose version 3

    I am unable to specify CPU and memory limitation for services specified in version 3. With version 2 it works fine with mem_limit & cpu_shares parameters under the services. But it fails while ...

  8. Docker Compose - How to execute multiple commands?

    Try instead $${Types} and $${Client}. I think this will prevent docker compose from interpreting those variables and looking for their values in whatever shell you invoke docker-compose from, which will …

  9. Copying files to a container with Docker Compose - Stack Overflow

    Aug 27, 2016 · There is no functionality in Docker Compose to copy files from host to a container during deploy. You are restricted to use of bind mounts, with several possible issues arising from that (if the …

  10. Docker-compose: Mounting a tmpfs usable by non-root user

    Nov 27, 2018 · 19 I'm creating docker images that will later be used on a Kubernetes with tight settings: read-only file system non-root USER For test purposes I can emulate 1) with a read_only: true in the …