Docker Aboutο
What is docker?ο
Architectureο
Image vs Containerο
Layersο
- Layerο
Diff between outputs of Dockerfile
RUNcommand while building an image
Layersο
Layersο
Container Layersο
Container Layersο
Open Container Initiativeο
The Open Container Initiative is an open governance structure for the express purpose of creating open industry standards around container formats and runtimes.
Established in June 2015 by Docker and other leaders in the container industry, the OCI currently contains two specifications: the Runtime Specification (runtime-spec) and the Image Specification (image-spec). The Runtime Specification outlines how to run a βfilesystem bundleβ that is unpacked on disk. At a high-level an OCI implementation would download an OCI Image then unpack that image into an OCI Runtime filesystem bundle. At this point the OCI Runtime Bundle would be run by an OCI Runtime.
Where Docker store logsο
Ubuntu (old using upstart) -
/var/log/upstart/docker.logUbuntu (new using systemd) -
sudo journalctl -fu docker.serviceAmazon Linux AMI -
/var/log/dockerBoot2Docker -
/var/log/docker.logDebian GNU/Linux -
/var/log/daemon.logCentOS -
/var/log/message | grep dockerCoreOS -
journalctl -u docker.serviceFedora -
journalctl -u docker.serviceRed Hat Enterprise Linux Server -
/var/log/messages | grep dockerOpenSuSE -
journalctl -u docker.serviceOSX -
~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/log/docker.logWindows -
Get-EventLog -LogName Application -Source Docker -After (Get-Date).AddMinutes(-5) | Sort-Object Time
Where Docker store containersο
Docker rootfull
/var/lib/docker/containersDocker rootless
~/.local/share/docker/
Docker rootfull:
$ docker info |grep 'Docker Root Dir'
Docker Root Dir: /var/lib/docker
Docker rootless:
$ docker info |grep 'Docker Root Dir'
Docker Root Dir: /home/ubuntu/.local/share/docker