Running Containers
-
6. Running Docker Containers
To Run Docker Containers
By ID:sudo docker start [ID]
By Names:
sudo docker start [NAME]
Example:
sudo docker start redis
The Create & Run All-in-one Command Instead, is:
sudo docker run -d --name redis1 -p 1234 redis
-
7. Stopping Docker Containers
To Stop & Kill Docker Containers
By ID:sudo docker stop [ID]/[NAME]
By Names:
sudo docker kill [ID]/[NAME]
Example:
sudo docker stop redis
-
8. Deleting Docker Containers
Remove/Delete a Docker Containers.
sudo docker rm [ID]/[NAME]
For Instance:
sudo docker rm redis
-
9. Launching Docker Linux Images
How to Run and Start to Use Docker Linux Images
Contents