My Docker notebook
All major x86 based operating systems, and even some ‘arm’, support Docker, including
The three major cloud providers support local image Docker installs as well as container services:
How to configure the Docker daemon to start on boot (on Ubuntu)
upstart
for Ubuntu 14.10 and belowsystemd
for most current Linux distributions (RHEL, CentOS, Fedora, Ubuntu 16.04 and higher)The following are requirements for Docker to run but are NOT installed as dependencies as they exist on most full system installations:
device-mapper-persistent-data
lvm2
yum-utils
What does a virtual machine directly rely on that a container does not?
Hypervisor. A virtual machine relies on some type of hypervisor that is responsible for translating calls from applications to the underlying hardware: storage, CPU, and memory requests.
Which of the following items need to be considered before installing Docker Enterprise?
docker info
displays system wide configuration information as seen by the Docker service.
e.g. See the storage driver Docker is currently using
When Docker is first installed, the installation creates a network interface called docker0
that functions as
both:
See also Default bridge network in docker-networking.md.
/run/docker.sock
file determines which accounts can use the service.
docker.sock
command is owned by docker
.To add a user to this group (to allow them to run Docker commands with unprivileged accounts):
usermod -aG docker user
/run/docker.pid
file contains the PID (Process ID) of the Docker service when it is running.
/etc/docker/daemon.json
file is used to override various Docker defaults, including
log-driver
)storage-driver
)/var/lib/docker
is the directory on a host, stores Docker image and container layers;
unless changed in the configuration or daemon at launch time.
On Ubuntu 14.x:
/etc/default/docker
file
# for a registry running on port 80 on example.com.
DOCKER_OPTS="--insecure-registry registry.example.com -H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock"
sudo service docker restart
On Ubuntu 16.x and CentOS:
/etc/docker/daemon.json
file
{
"insecure-registries" : ["registry.example.com"]
}
sudo systemctl restart docker