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

debian docker

# Install docker
sudo apt install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
sudo apt update
apt-cache policy docker-ce
sudo apt install -y docker-ce

# Install docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
Comment

how to install docker on Debian 10

# From docker.com repositories in Debiam as root
# Prereqs
apt update
apt install ca-certificates curl gnupg lsb-release
# Add cert
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
# Add repository
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian 
$(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
# Install docker
apt update
apt install docker-ce docker-ce-cli containerd.io
# Note: apt upgrade will upgrade to highest version if multiple repositories exist with different version.
Comment

install docker debian

sudo apt -y install apt-transport-https ca-certificates curl gnupg2 software-properties-common
Comment

debian install docker

# Install Docker - for Debian (buster 11)
sudo su
apt install ca-certificates gnupg lsb-release -y
mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
chmod a+r /etc/apt/keyrings/docker.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
apt update -y
apt install docker-ce docker-ce-cli containerd.io docker-compose-plugin -y
apt install docker-ce=5:20.10.17~3-0~debian-bullseye docker-ce-cli=5:20.10.17~3-0~debian-bullseye containerd.io docker-compose-plugin -y
Comment

install docker linux debian 10

sudo apt-get purge docker lxc-docker docker-engine docker.io
Comment

install docker on linux debian

sudo docker run hello-world
Comment

install docker debian

$ echo 
  "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian 
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
Comment

install docker debian 10

$ curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
Comment

PREVIOUS NEXT
Code Example
Shell :: debian libc-client.a). Please check your c-client installation 
Shell :: bbb secret key 
Shell :: allow-unauthenticated not working 
Shell :: ubuntu delete folder 
Shell :: bash create symbolic link to other symbolic links 
Shell :: list file sizes 
Shell :: clone repo 
Shell :: shell get unique lines 
Shell :: ubuntu nvm 
Shell :: bash get absolute path 
Shell :: Pyserial is not installed for /Applications/Xcode.app/Contents/Developer/usr/bin/python3 macos 
Shell :: windows list all files in subdirectories 
Shell :: concat strings inside array bash script 
Shell :: install nmap 
Shell :: terminal trash folder 
Shell :: ubuntu default terminal font family 
Shell :: downoad woe usb or ubuntu linux 
Shell :: journalctl date 
Shell :: hsdpa modem software for linux 
Shell :: bash multiline comment 
Shell :: decrease journalctl size 
Shell :: apt slow inside lxc 
Shell :: change user terminal 
Shell :: conda install libglu1 
Shell :: bash ignore stderr 
Shell :: pushing to existing repo 
Shell :: how to delete branch git cli 
Shell :: how to add your project to github 
Shell :: -v /var/run/docker.sock jenkins/jenkins 
Shell :: docker history 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =