Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

install docker on debian

Delete any outdated packages: 
sudo apt-get purge docker lxc-docker docker-engine docker.io

Update the default respository: 
sudo apt-get update

Download the following dependencies: 
sudo apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common

Download Docker’s official GPG key to verify the integrity of packages
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -

Add the Docker repository to your system repository
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian buster stable"

Update the apt repository:
sudo apt-get update

Install Docker Engine and containerd:
sudo apt-get install docker-ce docker-ce-cli containerd.io

Check the status by typing:
systemctl status docker

Another way to check the installation:
docker -v

Optional: Verify the Installation With a Hello World Image
docker run hello-world

To remove docker:
sudo apt-get purge docker-ce
sudo rm -rf /var/lib/docker
Comment

how to run debian on docker

docker run -it debian
Comment

PREVIOUS NEXT
Code Example
Shell :: how to undo a commit sent that was pushed 
Shell :: cmake install 
Shell :: deleting remote branch in GitHub 
Shell :: how to download a text file with curl 
Shell :: django shell get db info 
Shell :: powershell check if command exists 
Shell :: bin/sh sam: not found 
Shell :: bash delete folder 
Shell :: grep not multiple patterns 
Shell :: night light for ubuntu 
Shell :: pip upgrade all at once 
Shell :: create batch file to delete folders 
Shell :: remove all untracked files git 
Shell :: docker install ubuntu 22.04 
Shell :: how to install wireshark 
Shell :: upgrade python using choco (win 10) 
Shell :: kubernetes get services 
Shell :: how to run spigot server using bat 
Shell :: how to install tar.xz file on ubuntu 
Shell :: check user group console linux 
Shell :: install spring boot on ubuntu 
Shell :: lib cairo win64 installation 
Shell :: install flask in venv 
Shell :: gcc for macos 
Shell :: Pterodactyl wings update 
Shell :: linux checksum file 
Shell :: linux remove lines from one file in another 
Shell :: linux mount ntfs as read write 
Shell :: @react-navigation/stack install npm 
Shell :: dump database docker 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =