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 command syntax

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...]

Docker start/stop/restart command example

Start the stopped container myphp

docker start myphp

Stop the running container myphp

docker stop myphp

Restart container myphp

docker restart myphp