About 50 results
Open links in new tab
  1. 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...

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

    Jun 22, 2016 · 381 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 …

  3. 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 …

  4. Docker compose up --force-recreate --build uses caching but I don't ...

    Dec 3, 2019 · docker-compose build --no-cache but for specific reasons, I need to use a one liner build'n'start command, so is there any way to produce this with docker-compose up?

  5. 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 …

  6. How do I mount a host directory as a volume in docker compose

    Dec 1, 2016 · In 2017, docker-compose was updated to support long syntax for a service’s volumes. With this syntax, you explicitly specify the type of mount (volume, bind or tmpfs) and label the source …

  7. 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 …

  8. Why is Docker installed but not Docker Compose?

    Instead of using this, find the correct package which you need to install to get access to the new Version 2 (Go) CLI. On apt based systems this is probably docker-compose-v2. Note that refers to the …

  9. 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 …

  10. What is the difference between ports and expose in docker-compose ...

    Nov 25, 2016 · And remember, if you use docker-compose run, the port definition in docker-compose.yml is ignored by default. Either use docker-compose up or provide the parameter --service …