Docker on AMI Linux

From PKC
Revision as of 13:55, 19 May 2021 by Benkoo (talk | contribs) (Created page with "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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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