Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

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
Comment

install docker linux

sudo apt-get update
 $ sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
Comment

install docker linux

 sudo apt-get install -y xserver-xorg-lts-trusty libgl1-mesa-glx-lts-trusty
Comment

install docker linux

 sudo apt-get install -y linux-image-generic-lts-trusty linux-headers-generic-lts-trusty
Comment

install docker linux

 curl -fsSL https://get.docker.com -o get-docker.sh
 chmod +x get-docker.sh
./get-docker.sh
Comment

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
Comment

should you use docker on linux

This is the esiest way to install docker on Ubuntu
https://www.youtube.com/watch?v=M7_mZXh8h8A
Comment

install docker on linux

$ curl -fsSL https://get.docker.com/ | sh
Comment

install docker on linux

sudo apt-get update
$ sudo apt-get install 
    ca-certificates 
    curl 
    gnupg 
    lsb-release
Comment

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
Comment

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
<...>
Comment

docker on linux

sSL https://download.dockercurl -f.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
Comment

docker in linux

rm -r $HOME/.docker/desktop
$ sudo rm /usr/local/bin/com.docker.cli
$ sudo apt purge docker-desktop
Comment

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
Comment

docker in linux

sudo apt remove docker-desktop
Comment

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"
Comment

PREVIOUS NEXT
Code Example
Shell :: java path ubuntu 20.04 
Shell :: install i18next-browser-languagedetector 
Shell :: git change email of old commit 
Shell :: get git config username and email 
Shell :: install nginx mariadb php on mac 
Shell :: openssl p12 to pem 
Shell :: kubectl get logs of deployment 
Shell :: One command to create a directory and file inside it linux command 
Shell :: git amend 
Shell :: install vscode linux 
Shell :: npm install production only 
Shell :: sum decimals bash 
Shell :: install vpn client for ubuntu 20.04 gui 
Shell :: git commit changes to different branch 
Shell :: how to run verilog files in linux 
Shell :: get wsl version 
Shell :: reboot pi from command line 
Shell :: sort numerically in linux ls 
Shell :: how to find ip adress of a web side kali linux 
Shell :: ssh keygen linux 
Shell :: install jupyter notebook 
Shell :: node-sass run 
Shell :: get repository url git cil 
Shell :: bash script getopts no argument 
Shell :: powershell check file extension 
Shell :: ssh key pair github 
Shell :: instal curl via yum 
Shell :: docker remove tag 
Shell :: git check if commit in master 
Shell :: bash kill all terminal 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =