docker and docker-compose seem to be interacting with the same dockerFile, what is the difference between the two tools?
docker manages single containers
docker-compose manages multiple container applications
Usage of docker-compose requires 3 steps:
docker-compose up to start and run appBelow is a docker-compose.yml example taken from the docker docs:
services:
web:
build: .
ports:
- "5000:5000"
volumes:
- .:/code
- logvolume01:/var/log
links:
- redis
redis:
image: redis
volumes:
logvolume01: {}