-
Notifications
You must be signed in to change notification settings - Fork 0
Install Docker
Install the following prerequisites
sudo apt-get install apt-transport-https ca-certificates software-properties-common -y
Download and install Docker
curl -fsSL get.docker.com -o get-docker.sh && sh get-docker.sh
Give the ‘osmc’ user the ability to run Docker
sudo usermod -aG docker osmc
Log out and log back in so that your group membership is re-evaluated
Import Docker CPG key
sudo curl https://download.docker.com/linux/raspbian/gpg
Setup the Docker Repo
sudo nano /etc/apt/sources.list
deb https://download.docker.com/linux/raspbian/ stretch stable
Patch and update your Pi
sudo apt-get update
sudo apt-get dist-upgrade
Start the Docker service
systemctl start docker.service
To verify that Docker is installed and running
docker info
Create master node
docker swarm init
To Check that Docker works properly
docker run hello-world
To delete all containers including its volumes
docker rm -vf $(docker ps -a -q)
To delete all the images.
Remember, you should remove all the containers before removing all the images from which those containers were created.
docker rmi -f $(docker images -a -q)