Docker Installation - autowarefoundation/autoware_ai_documentation GitHub Wiki

This page includes instructions on how to install the latest version of Docker for use with Autoware. If the following installation process does not work for you, please consult Docker's installation website.

Old Docker Cleanup

This is to verify that no older or incompatible versions of Docker are installed on your system.

$ sudo apt-get remove docker docker-engine docker.io

You are ready to move on the next step if all Docker packages were removed.

Docker CE Installation

At this time, the recommended installation method is using the Docker repository, though there are several other ways to install Docker.

Step 1: Repository Setup

Update apt-get package lists.

$ sudo apt-get update

Permit apt-get to access the repository, which uses HTTPS.

$ sudo apt-get install apt-transport-https ca-certificates curl software-properties-common

Add Docker's official GPG key.

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

Validate the key. If you see the fingerprint below, you are ready to move on the next step.

$ sudo apt-key fingerprint 0EBFCD88

pub 4096R/0EBFCD88 2017-02-22
Key fingerprint = 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88
uid Docker Release (CE deb)
sub 4096R/F273FCD8 2017-02-22

Add the repository to your system.

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

Step 2: Docker CE Installation

Update apt-get package lists with the new repository.

$ sudo apt-get update

Install the latest version of Docker CE.

$ sudo apt-get install docker-ce

Validate the installation succeeded.

$ sudo docker run hello-world