Created
July 4, 2017 12:33
-
-
Save arijusg/7c84991111719b4d8d5b2145225a95eb to your computer and use it in GitHub Desktop.
Post setup Docker
This file contains hidden or 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
# Run docker without sudo | |
sudo groupadd docker | |
sudo usermod -aG docker $USER | |
# Restart pc | |
docker run hello-world | |
# Set custom docker bridge subnet | |
sudo systemctl edit docker | |
# Put his in there | |
[Service] | |
ExecStart= | |
ExecStart=/usr/bin/dockerd --bip 192.168.169.1/24 | |
sudo systemctl daemon-reload | |
# verify that the configuration has been loaded: | |
systemctl show --property=ExecStart docker | |
# restart docker: | |
sudo systemctl restart docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment