Last active
October 21, 2022 13:45
-
-
Save austinbrian/7f0ad31efadf758dc780b3cf6f1e5889 to your computer and use it in GitHub Desktop.
Restart docker and enable for ec2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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