Answers for "command to install docker"

6

docker post installation steps linux

# Creates docker group
sudo groupadd docker

# Add your user to the docker group
sudo usermod -aG docker $USER

# Log out and log back in so that your group membership is re-evaluated
# GNOME example
gnome-session-quit
Posted by: Guest on June-16-2020
8

install docker linux

sudo apt-get install -y xserver-xorg-lts-trusty libgl1-mesa-glx-lts-trusty
Posted by: Guest on April-28-2020
3

install docker

1 - VERIFY SYSTEM IS CURRENTLY UPDATED
# yum check-update

2 - INSTALL DOCKER
# curl -fsSL https://get.docker.com/ |sh  # download and install docker
Start & Enable Docker
# systemctl start docker && systemctl enable docker
As your self (not root), add your user to the docker group
$ sudo usermod -aG docker $(whoami)

3 - INSTALL DOCKER-COMPOSE
$ latest=$(curl -s https://raw.githubusercontent.com/docker/docker.github.io/master/_config.yml|grep "^compose_version"|awk '{print $2}'|sed 's/\"//g')
$ sudo curl -L "https://github.com/docker/compose/releases/download/${latest}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose
Posted by: Guest on June-22-2021
-1

install docker

$ curl -fsSL https://get.docker.com -o get-docker.sh
$ DRY_RUN=1 sh ./get-docker.sh
Posted by: Guest on June-26-2021

Browse Popular Code Answers by Language