Docker on AMI Linux

From PKC
Jump to navigation Jump to search

Install Docker on AMI Linux:

See https://gist.github.com/npearce/6f3c7826c7499587f00957fee62f8ee9

Check the status:

$ sudo service docker status

If there isn’t running:

$ sudo service docker start

And then to auto-start after reboot:

$ sudo systemctl enable docker

Don’t forget to add your ec2-user to the docker group:

$ sudo usermod -aG docker ec2-user

And then reboot or just logoff/login again

$ sudo reboot