# Ubuntu

### Installation Guide

1. Update the apt package index and install packages to allow apt to use a repository over HTTPS

```
sudo apt-get update
sudo apt-get install \
    apt-transport-https \
    ca-certificates \
    curl \
    gnupg-agent \
    software-properties-common
```

2\. Add Docker’s official GPG key:

```
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
```

3\. Verify that the key has the fingerprint`9DC8 5822 9FC7 DD38 854A  E2D8 8D81 803C 0EBF CD88`, by searching for the last 8 characters of the fingerprint.

```
sudo apt-key fingerprint 0EBFCD88
```

> pub     rsa4096 2017-02-22 \[SCEA]\
> &#x20;           9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88\
> uid                         \[ unknown] Docker Release (CE deb) <docker@docker.com>\
> sub       rsa4096 2017-02-22 \[S]

4\. Set up the docker repository

```
sudo add-apt-repository \
   "deb [arch=amd64] https://download.docker.com/linux/ubuntu \
   $(lsb_release -cs) \
   stable"
```

5\. Update the apt package index, and install the latest version of Docker Engine and containerd

```
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
```

6\. Create the docker group.

```
sudo groupadd docker
```

7\. Add user to the docker group.

```
sudo usermod -aG docker $USER
```

8\. Log out and log back in so that your group membership is re-evaluated.

9\. To confirm that Docker has been installed, check the docker version using

```
docker --version
```

Reference:&#x20;

1. <https://docs.docker.com/engine/install/ubuntu/>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aurras.hugobyte.com/dependencies/docker/environments/docker-ubuntu.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
