Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

install docker

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo usermod -aG docker $USER
newgrp docker
Comment

install docker

sudo apt install docker.io docker-compose acl
sudo setfacl --modify user:$USER:rw /var/run/docker.sock
sudo usermod -aG docker $USER
docker run hello-world			# Test if it works
Comment

install docker

sudo apt-get update
sudo apt-get install 
    ca-certificates 
    curl 
    gnupg 
    lsb-release
sudo sudo mkdir -p /etc/apt/keyrings
# sudo is important here
sudo curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
# GPG error
# sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo 
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian 
  $(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
Comment

install docke machine

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

$ 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

You can fix this by running the following commands:

sudo apt-get update

sudo apt-get install ca-certificates curl gnupg 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 update

sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin


Then run sudo apt-get install ./docker-desktop-<version>-<arch>.deb
More info here: Install Docker Engine on Ubuntu
Comment

install docker

curl -fsSL https://get.docker.com -o get-docker.sh  # Download docker installer script.
sudo sh get-docker.sh  # Install docker by running installer script.

# Optional commands for easier use:
rm get-docker.sh  # Removes the installer script.
usermod -aG docker $USER  # To remove the need for 'sudo' in front of every docker command.
newgrp docker  # To activate the previous command, if you still need 'sudo' restart your computer.
Comment

install docker

$ curl -fsSL https://get.docker.com -o get-docker.sh
$ DRY_RUN=1 sh ./get-docker.sh
Comment

install docker

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
usermod -aG docker $USER
newgrp docker

Comment

install docker

apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
apt-key fingerprint 0EBFCD88
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
apt-get update && apt-get install docker-ce -y
Comment

PREVIOUS NEXT
Code Example
Shell :: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied: 
Shell :: new screen linux 
Shell :: oh my zsh 
Shell :: github accout change on vsc 
Shell :: ssh tunnel map 
Shell :: install ghost script 
Shell :: how to open new terminal in ubuntu 
Shell :: bash count files in directory recursively matchingattern 
Shell :: plt .show matplotlib remote vscode 
Shell :: @types/react-native-vector-icons 
Shell :: github clone to local folder 
Shell :: flutter android embedding check version 
Shell :: git diff between two repos 
Shell :: downloading and updating vscode 
Shell :: how to create new branch in git 
Shell :: pulling a branch from github 
Shell :: show git branch name in terminal mac 
Shell :: install docker centos 7 
Shell :: linux switch user 
Shell :: check if cuda installed 
Shell :: how to chanbge port number on centos8 
Shell :: set node role kubernetes 
Shell :: github desktop 
Shell :: kill process bash 
Shell :: sed delete line match 
Shell :: update node with nvm 
Shell :: cutefish desktop enviroment install 
Shell :: bash list 
Shell :: bash ls sort by size 
Shell :: import docker image 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =