Skip to content

Instantly share code, notes, and snippets.

@austinbrian
Last active October 21, 2022 13:45
Show Gist options
  • Save austinbrian/7f0ad31efadf758dc780b3cf6f1e5889 to your computer and use it in GitHub Desktop.
Save austinbrian/7f0ad31efadf758dc780b3cf6f1e5889 to your computer and use it in GitHub Desktop.
Restart docker and enable for ec2
#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment