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

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

PREVIOUS NEXT
Code Example
Shell :: get latitude and longitude based on user entered place android 
Shell :: Bash echo to standard output from function 
Shell :: git reset hard directory 
Shell :: powershell script run 
Shell :: helm install with values file 
Shell :: write in a file linux 
Shell :: neovim open file 
Shell :: git apply trailing whitespace 
Shell :: DNS_PROBE_FINISHED_NXDOMAIN linux 
Shell :: kills a process on port 
Shell :: libgnome-keyring-dev 
Shell :: how to install node version to current folder only 
Shell :: leave azure ad cmd 
Shell :: install ruby environment on ubuntu 20.04 
Shell :: xargs ffmpeg multiples files 
Shell :: bash cake command not found 
Shell :: postgres change deafult encode 
Shell :: count the pages of multiple pdf files in linux 
Shell :: amend git description 
Shell :: adb kill server kali linux 
Shell :: reart admin 
Shell :: raspberry pi remove script from startup 
Shell :: how to active telnet on windows 10 telnet 
Shell :: create file of packages to install with yum 
Shell :: how do i close my virtual window which is created by screen command in linux 
Shell :: TestStand null char 
Shell :: Install SWAY on debin ubuntu 
Shell :: how to change ssh key for git 
Shell :: powershell add to path 
Shell :: rename heroku remote 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =