APNIC 56 Network Automation tutorial
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Docker

Lists all running containers

docker container list 

Lists all containers (including ones which are not running)

docker container list -a

Lists docker networks present on the host

docker network list

Lists local images present on the docker host

docker image list 

Create container with with name “A” and image with the tag “latest”.

docker run --name=A image:latest

Stop container

docker container stop <container-name> 

Start container

docker container start <container-name>

Remove container

docker container rm <container-name> 

Cheatsheet

Cheat sheet reference link