I am new to docker, trying to practice docker-compose commands! My doubt is how to run ubuntu/alpile kind of operating system images using docker-compose?
Here is the docker-compose.yml file:
Here is the output when i run “docker-compose up” command.
WARNING: The Docker Engine you’re using is running in swarm mode.
Compose does not use swarm mode to deploy services to multiple nodes in a swarm. All containers will be scheduled on the current node.
To deploy your application across the swarm, use
docker stack deploy.
Starting docker-compose-1_myubuntu_1 … done
Starting docker-compose-1_myalpine_1 … done
Attaching to docker-compose-1_myubuntu_1, docker-compose-1_myalpine_1
docker-compose-1_myubuntu_1 exited with code 0
docker-compose-1_myalpine_1 exited with code 0
[root@ip-172-31-90-241 docker-compose-1]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
None of the containers are running…!
Can someone help me, how to run these images using docker-compose?
Thank you in advvance.