Setup Docker in Ubuntu » History » Revision 2
Revision 1 (Gareth Eaton, 08/03/2023 04:38 PM) → Revision 2/8 (Gareth Eaton, 08/03/2023 10:14 PM)
h1. Setup Docker in Ubuntu Set up an Ununtu server - we will use 22.10 Update Package Index: <pre> sudo apt update && apt upgrade </pre> Install Prerequisites: <pre> sudo apt install -y apt-transport-https ca-certificates curl software-properties-common </pre> Add Docker Repository: Your might have to install curl - apt install curl <pre> curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg echo "deb [signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null </pre> Install Docker: <pre> sudo apt update sudo apt install -y docker-ce docker-ce-cli containerd.io </pre> Start and Enable Docker: <pre> sudo systemctl start docker sudo systemctl enable docker </pre> Verify Docker Installation: <pre> sudo docker --version sudo docker info </pre> Run a Test Container: <pre> sudo docker run hello-world </pre>