Installation on multiple platforms
Centos:
Ubuntu:
How to configure the default logging driver
sudo vi /etc/docker/daemon.json
{
"log-driver": "json-file",
"log-opts": {
"max-size": "15m"
}
}Overwrite default logging on run
docker run –log-driver json-file –log-opt max-size=50m nginx
Describe the use of namespaces
namespaces are a linux tech that allows processes to be isolated in terms of the resources that they see
docker uses namespaces to isolate containers
Describe some docker namespaces
Describe the use of cgroups
limits an application to a specific set of resources
allow docker to share hardware resources to containers and optionally enforce constraints and limits