Skip to content

Instantly share code, notes, and snippets.

@ahaubold
Last active February 9, 2018 08:36
Show Gist options
  • Save ahaubold/b2a56d660b7ba6e7682592fdd24b7857 to your computer and use it in GitHub Desktop.
Save ahaubold/b2a56d660b7ba6e7682592fdd24b7857 to your computer and use it in GitHub Desktop.
Docker
{
"graph": "/home/username/docker"
}
# 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