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

docker install

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

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

docker install

$ curl -fsSL https://get.docker.com -o get-docker.sh
$ sudo sh get-docker.sh
Comment

docker install

softwareupdate --install-rosetta
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

docker install

$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
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

docker install

echo 
  "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian 
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
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 :: see journalctl running logs 
Shell :: give docker permission to non-root user in linux 
Shell :: home directory of wsl 
Shell :: shell set environment variable 
Shell :: wsl screen permission denied 
Shell :: clear port by terminal 
Shell :: change ratio vmware ubuntu 
Shell :: install font on linux 
Shell :: git-clone command not found ubuntu 
Shell :: enable rdp powershell 
Shell :: how to revert to a specific commit 
Shell :: blackeye linux 
Shell :: last login linux 
Shell :: zsh: command not found: aws 
Shell :: git remote commands 
Shell :: copy all files from a folder to another ubuntu 
Shell :: how to return latest version in github 
Shell :: install linux subsystem windows 10 
Shell :: start fast api server 
Shell :: install spark on mac 
Shell :: Ubuntu open terminal in current folder with shortcut 
Shell :: git rev-parse --short HEAD 
Shell :: nano for windows 
Shell :: cmd shell 
Shell :: start kafka locally 
Shell :: github add image readme 
Shell :: bash while loop 
Shell :: gcc 7 install ubuntu 
Shell :: nginx redirect to port 
Shell :: pip install --upgrade 
ADD CONTENT
Topic
Content
Source link
Name
3+6 =