Docker start/stop/restart command
Translation results:
Docker is an open source application container engine, based on the Go language and open source in compliance with the Apache2.0 protocol.
Docker allows developers to package their applications and dependencies into a lightweight, portable container, and then publish it to any popular Linux machine, which can also be virtualized.
Docker start/stop/restart commandsyntax
docker start: Start one or more stopped containers
docker stop: Stop a running container
docker restart: Restart the container
docker start [OPTIONS] CONTAINER [CONTAINER...]
docker stop [OPTIONS] CONTAINER [CONTAINER...]
docker restart [OPTIONS] CONTAINER [CONTAINER...]
p>
Docker start/stop/restart commandexample
Start the stopped container myphp
docker start myphp
Stop the running container myphp
docker stop myphp
Restart container myphp
docker restart myphp