gemini/guides/linux/install-docker-ubuntu.html
sneedgroup-holder 572919b216 fresh start
2024-11-16 20:56:27 +00:00

7 lines
1.3 KiB
HTML

<!DOCTYPE html><html><head><meta charset="utf-8"><meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"><meta name="viewport" content="width=device-width, initial-scale=1.0"><link type="text/css" rel="stylesheet" href="/style.css"><link type="text/css" rel="stylesheet" href="style.css"><title>Mirrored Gemini content.</title></head><body><h1> Installing docker in Ubuntu...</h1><h2> Get the repo</h2><p>sudo apt-get update</p><p>sudo apt-get install ca-certificates curl</p><p>sudo install -m 0755 -d /etc/apt/keyrings</p><p>sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc</p><p>sudo chmod a+r /etc/apt/keyrings/docker.asc</p><h2> Add the repository to Apt sources:</h2><pre>echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list &gt; /dev/null
sudo apt-get update
</pre><p>***NOTE: If you use an Ubuntu derivative distro, such as Linux Mint, you may need to use UBUNTU_CODENAME instead of VERSION_CODENAME.***</p><h2> Get the latest docker.</h2><pre>sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin```
</pre></body></html>