Skip to main content

Instructions to Install Docker on Amazon Linux 2

Amazon Linux 2 already has docker in the repo

# Install docker
$ sudo yum install docker
$ sudo systemctl enable docker
$ sudo systemctl start docker

# Install portainer agent
$ docker run -d -p 9001:9001 --name portainer_agent --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker/volumes:/var/lib/docker/volumes portainer/agent:2.11.1