Skip to content

Instantly share code, notes, and snippets.

@danilogco
Last active April 21, 2021 18:22
Show Gist options
  • Save danilogco/ab5f639be0f594052312b091308ca6d1 to your computer and use it in GitHub Desktop.
Save danilogco/ab5f639be0f594052312b091308ca6d1 to your computer and use it in GitHub Desktop.
Fix docker startup - Ubuntu 20.10
#!/bin/sh
# Disable docker service autoload
sudo systemctl disable docker.service docker.socket
# Aliases to start or shutdown docker service
echo "alias docker_start='systemctl start docker.service'" | sudo tee -a ~/.bash_profile
echo "alias docker_stop='systemctl stop docker.service docker.socket'" | sudo tee -a ~/.bash_profile
source ~/.bash_profile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment