Last active
February 9, 2018 08:36
-
-
Save ahaubold/b2a56d660b7ba6e7682592fdd24b7857 to your computer and use it in GitHub Desktop.
Docker
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
{ | |
"graph": "/home/username/docker" | |
} |
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
# docker setup | |
# @see http://manjaro.site/install-docker-community-edition-ubuntu-16-04/ | |
# docker conainer management with portainer | |
# @see http://manjaro.site/how-to-install-portainer-on-ubuntu-16-04/ | |
# start docker deamon or start deamon with explicit config file (daemon.json is allready default) | |
dockerd | |
dockerd --config-file /etc/docker/daemon.json | |
# restart the service after config changed | |
service docker restart | |
# get the status | |
systemctl status docker | |
docker --version | |
docker run hello-world | |
# list docker containers | |
docker ps | |
# execute command within docker container | |
docker exec -it container_name /bin/bash | |
# get network configuration (after log-in to container) | |
# @see ip addr show eth0 | |
ip addr show eth0 | |
# sometimes some network packages may be needed within the container | |
sudo apt-get update && apt-get install iputils-ping && apt-get install net-tools |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment