Docker on AMI Linux

From PKC
Revision as of 09:29, 20 May 2021 by Benkoo (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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