Skip to content

Installing Docker on Pengwin without Docker Desktop #734

Answered by crramirez
avinashupadhya99 asked this question in Q&A
Discussion options

You must be logged in to vote

How to install docker in Pengwin without Docker Desktop

sudo apt update
sudo apt install -y  --no-install-recommends gnupg2
source /etc/os-release
curl -fsSL https://download.docker.com/linux/${ID}/gpg | sudo apt-key add -
echo "deb [arch=amd64] https://download.docker.com/linux/${ID} ${VERSION_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/docker.list
sudo apt update
sudo apt install -y docker-ce docker-ce-cli containerd.io
sudo usermod -aG docker $USER
DOCKER_DIR=/mnt/wsl/shared-docker
mkdir -pm o=,ug=rwx "$DOCKER_DIR"
sudo chgrp docker "$DOCKER_DIR"
sudo mkdir /etc/docker
sudo <your_text_editor> /etc/docker/daemon.json
{
   "hosts": ["unix:///mnt/wsl/shared-docker/docker.sock"],
   

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@C0coleplub0
Comment options

@sharpninja
Comment options

@crramirez
Comment options

@mikkop71
Comment options

@crramirez
Comment options

Answer selected by avinashupadhya99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants