2021年3月9日星期二

Docker compose not doing anything

If I run this command: docker-compose up --detach:

It just returns the default information about Docker:

Builds, (re)creates, starts, and attaches to containers for a service.    Unless they are already running, this command also starts any linked services.    The `docker-compose up` command aggregates the output of each container. When  the command exits, all containers are stopped. Running `docker-compose up -d`  starts the containers in the background and leaves them running.    If there are existing containers for a service, and the service's configuration  or image was changed after the container's creation, `docker-compose up` picks  up the changes by stopping and recreating the containers (preserving mounted  volumes). To prevent Compose from picking up changes, use the `--no-recreate`  flag.  

How can I get it to run?

I've tried docker-compose up -d, which returns:

ERROR: Couldn't connect to Docker daemon - you might need to run docker-machine start default`.

https://stackoverflow.com/questions/66557357/docker-compose-not-doing-anything March 10, 2021 at 10:02AM

没有评论:

发表评论