[]
can be omitted.--Create and start a container [Run in background]
docker-compose up [-d]
--Container startup (with a container already)
docker start <Container name>
--Container stop
docker stop <Container name>
--Stop all containers
docker stop $(docker ps -q)
--Container startup status check [Get stopped container]
docker ps [-a]
--Image execution
docker run <image>
--Image list display
docker images
--Run service build
docker-compose build
--Execute a new command in the running container
docker exec [option] <container> <command> [argument]
Recommended Posts