Difference between revisions of "Docker on AMI Linux"

From PKC
Jump to navigation Jump to search
(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...")
 
 
Line 1: Line 1:
Install Docker on AMI Linux:
See https://gist.github.com/npearce/6f3c7826c7499587f00957fee62f8ee9
Check the status:
Check the status:
  $ sudo service docker status
  $ sudo service docker status

Latest revision as of 09:29, 20 May 2021

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