Docker Community Forums

Share and learn in the Docker community.

Windows: Docker Containers exiting after Startup


(Insaneyogi) #1

Here is the output when I run my docker compose:

$ docker-compose up
Starting compose_mosquitto_1
Starting compose_nodered_1
Attaching to compose_mosquitto_1, compose_nodered_1
←[36mcompose_mosquitto_1 exited with code 0
←[0m←[33mcompose_nodered_1 exited with code 0
←[0m

Notice that the compose containers are exiting on startup, here is my code from the yml file :slight_smile:
</

nodered:
image: cc1735be205b
volumes:
- /var/lib/docker/node-red/:/data/node-red/
ports:
- “1880:1880”

mosquitto:
image: 47af6ca8a14a
ports:
- “1883:1883”

/>

Could anybody tell me how I can make the created containers run instead of exiting?