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 :: docker compose stop and start only specific 
Shell :: how to change hostname in kali linux 
Shell :: install microsoft edge terminal 
Shell :: git how to see changes made by a commit 
Shell :: mac see current path2 
Shell :: setup systemd redis 
Shell :: read file line loop in bash 
Shell :: debian install nvidia driver 
Shell :: chmod add execute permission to useer 
Shell :: powershell sharepoint copy file to other site collection 
Shell :: start logstash 
Shell :: linux bash temporary file 
Shell :: git submodule push current branch to master 
Shell :: open current dir cmd 
Shell :: how to install certbot on ubuntu 
Shell :: bash inline countdown 
Shell :: laravel new project in install 
Shell :: android debug keystore windows 
Shell :: cd to root directory windows 
Shell :: Backup Restore and Upgrade Gitlab 
Shell :: git add alias 
Shell :: how to run code from github 
Shell :: limits.h: No such file or directory 
Shell :: ubuntu 20.04 install nginx 
Shell :: powershell allow execution 
Shell :: shorten the linux terminal path 
Shell :: Command "server:run" is not defined. 
Shell :: show list of branches git 
Shell :: can i create a git repository via terminal 
Shell :: Virtual Camera Support for linux 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =