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

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

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 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 :: cd back 
Shell :: ionice 
Shell :: bash boolean 
Shell :: docker restart always 
Shell :: how to install odoo 15 on ubuntu 20.04 
Shell :: delete all git ignored files 
Shell :: git fetch only pull master 
Shell :: lldb for mac 
Shell :: install freepbx on ubuntu 18.04 
Shell :: passphrase 
Shell :: nextcloud .step file 
Shell :: packet8 
Shell :: to check for hidden repository 
Shell :: github terraform integration 
Shell :: iperf test example 
Shell :: ansible tar with a datestamp 
Shell :: how to update azure data studio on ubuntu 
Shell :: how to install jupyter notebook in windows 10 
Shell :: ex: "push a new local repository to github" 
Shell :: git pull remote branch that does not exist locally 
Shell :: run the last command in unix 
Shell :: android studio git upsh unable to read askpass response 
Shell :: docker swarm redistribute services on nodes 
Shell :: ubuntu fresh install deps 
Shell :: download ubuntu 20 from gdrive 
Shell :: linode aapanel info location 
Shell :: pycache delete bash code 
Shell :: git lfs track folder 
Shell :: install laravel admin panel with laravel 9 
Shell :: comment installer twitter sur ubuntu 20.04 
ADD CONTENT
Topic
Content
Source link
Name
9+3 =