RPi

docker

Installation

sh# apt install docker.io

systemd - enable/start/stop dockerd

sh# systemctl enable dockerd
sh# systemctl start dockerd
sh# systemctl stop dockerd

Creating a container

sh# docker create -it --name=debian-9 --hostname=debian-9 --volume <image>

list all containers

sh# docker ps -a
sh# docker container ls


list all running containers

sh# docker ps
sh# docker container ls -a