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 :: bash remove everything after character x 
Shell :: remove git from angular oproject 
Shell :: delete registry key powershell 
Shell :: libc-bin error 
Shell :: apache enable module 
Shell :: screen quit session 
Shell :: http-server mac install 
Shell :: delete commit from pr 
Shell :: graphviz windows install 
Shell :: pulseaudio check if runnings 
Shell :: git checkout commit 
Shell :: windows 10 sfc scan 
Shell :: add file to gitignore 
Shell :: uninstall all microsoft apps powershell 
Shell :: what is difference between npm install and npm install save --dev 
Shell :: linux change azert 
Shell :: git heroku commit 
Shell :: change message from last pushed commit 
Shell :: homebrew on mac 
Shell :: count files command mac 
Shell :: how to push newly created branch in git bash 
Shell :: Installing the virtualenv module 
Shell :: unix cp all files and folders at once 
Shell :: ffmpeg join ts files to mp4 
Shell :: add a home directory for existing user 
Shell :: keep only last line bash 
Shell :: starting nodemon server 
Shell :: flask 
Shell :: navigation in react native 
Shell :: Failed to load module "canberra-gtk-module" 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =