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

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

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

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

PREVIOUS NEXT
Code Example
Shell :: ubuntu essential commands 
Shell :: mkdir command 
Shell :: git rebase onto 
Shell :: authy 
Shell :: uninstall awesome window manager ubuntu 
Shell :: how to kill recycling process linux 
Shell :: ajouter tag github 
Shell :: heroku rename could not find that app 
Shell :: daily bing ubuntu 
Shell :: How to change MAC Termianl Prompt 
Shell :: find all cron jobs in linux 
Shell :: texlive 2019 in ubuntu 18.4 
Shell :: brownie coverage 
Shell :: shortan promt ubunto 
Shell :: command to transform to asci code 
Shell :: command to transform to asci code bash 
Shell :: amend git description 
Shell :: instal bable for linux 
Shell :: Error: path "" is not a descendant of mount point root "" and cannot be exposed from 
Shell :: colcon build number of threads 
Shell :: sort descending order linux 
Shell :: install composer per project in multiple php version 
Shell :: flutter add const auto 
Shell :: git, repository, new repository 
Shell :: delphes install 
Shell :: ubuntu 16 lock from terminal 
Shell :: how to install ubuntu on mac 
Shell :: how to install altair graphql on manjaro linux 
Shell :: grep ignore node_modules 
Shell :: how to pip install on command prompt 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =