Docker-compose.yml file:
version: "3" services: webserver: image: nginx ports: - "80:80" volumes: - .:/usr/share/nginx/html I create service: docker-compose -p my up --no-start
I look at the list of containers: docker container ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 99dabcf2b2cf nginx "nginx -g 'daemon of…" 4 seconds ago Created my_webserver_1_5f7310de9b9a Trying to run: docker-compose start
Starting webserver ... done ERROR: No containers to start But it works if you do not specify the name ( -p my )
I flipped through the commands in .bash_history, then suddenly I enter something wrong, so not - the same commands. Yesterday it worked, today did not update anything.
Version: docker-compose version 1.23.1, build b02f1306
docker-compose -p my start? - kami