DekGenius.com
SHELL
linux install docker
sudo apt-get update
sudo apt-get install ca-certificates
sudo apt-get install curl
sudo apt-get install gnupg
sudo apt-get install lsb-release
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
echo
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
//Run Docker
sudo docker run hello-world
docker install linux
curl -fsSL https://get.docker.com -o /tmp/get-docker.sh && sudo sh /tmp/get-docker.sh &&
sudo usermod -aG docker $USER && newgrp docker &&
newgrp docker &&
sudo curl -L "github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/bin/docker-compose &&
sudo chmod +x /usr/bin/docker-compose
install docker linux
sudo apt-get update
$ sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
install docker linux
sudo apt-get install -y xserver-xorg-lts-trusty libgl1-mesa-glx-lts-trusty
install docker linux
sudo apt-get install -y linux-image-generic-lts-trusty linux-headers-generic-lts-trusty
install docker linux
curl -fsSL https://get.docker.com -o get-docker.sh
chmod +x get-docker.sh
./get-docker.sh
Installing Docker Engine in Linux/Ubuntu
sudo apt-get install docker-ce docker-ce-cli containerd.io
apt-cache policy docker-ce
apt-cache madison docker-ce
# sudo apt-get install docker-ce=<VERSION_STRING> docker-ce-cli=<VERSION_STRING> containerd.io
Example
sudo apt-get install docker-ce=5:18.09.9~3–0~ubuntu-bionic docker-ce-cli=5:18.09.9~3–0~ubuntu-bionic containerd.io
docker — version
sudo service docker status
docker machine install linux
$ base=https://github.com/docker/machine/releases/download/v0.16.0 &&
curl -L $base/docker-machine-$(uname -s)-$(uname -m) >/tmp/docker-machine &&
sudo mv /tmp/docker-machine /usr/local/bin/docker-machine &&
chmod +x /usr/local/bin/docker-machine
should you use docker on linux
This is the esiest way to install docker on Ubuntu
https://www.youtube.com/watch?v=M7_mZXh8h8A
install docker on linux
$ curl -fsSL https://get.docker.com/ | sh
docker install ubuntu linux
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
$ echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
install docker on linux
sudo apt-get update
$ sudo apt-get install
ca-certificates
curl
gnupg
lsb-release
install docker on linux
echo
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
install docker in linux
$ curl -fsSL https://get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh
Executing docker install script, commit: 7cae5f8b0decc17d6571f9f52eb840fbc13b2737
<...>
docker on linux
sSL https://download.dockercurl -f.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
docker in linux
rm -r $HOME/.docker/desktop
$ sudo rm /usr/local/bin/com.docker.cli
$ sudo apt purge docker-desktop
install docker on linux
sudo mkdir -p /etc/apt/keyrings
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
docker in linux
sudo apt remove docker-desktop
docker machine install linux
$ base=https://github.com/docker/machine/releases/download/v0.16.0 &&
mkdir -p "$HOME/bin" &&
curl -L $base/docker-machine-Windows-x86_64.exe > "$HOME/bin/docker-machine.exe" &&
chmod +x "$HOME/bin/docker-machine.exe"
Install docker on linux (Ubuntu)
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
sudo usermod -aG docker youruser (OPTIONAL:"don't use with Redhat, Fedora, Centos if concerned about security" Add user to docker group to run commands without using sudo)
© 2022 Copyright:
DekGenius.com