2. Install

2.1. Versions

LTS version

Docker Long Term Support version

Edge version

Docker up-to-date (newest) version

2.1.1. macOS

$ curl https://get.docker.com |sh

2.1.2. Ubuntu

Code 2.3. Preferred
$ curl https://get.docker.com |sh
Code 2.4. Alternative
$ sudo apt update
$ sudo apt install docker.io

2.1.3. Linux

$ curl https://get.docker.com |sh

2.2. Logs

  • Ubuntu (old using upstart) - /var/log/upstart/docker.log

  • Ubuntu (new using systemd) - sudo journalctl -fu docker.service

  • Amazon Linux AMI - /var/log/docker

  • Boot2Docker - /var/log/docker.log

  • Debian GNU/Linux - /var/log/daemon.log

  • CentOS - /var/log/message | grep docker

  • CoreOS - journalctl -u docker.service

  • Fedora - journalctl -u docker.service

  • Red Hat Enterprise Linux Server - /var/log/messages | grep docker

  • OpenSuSE - journalctl -u docker.service

  • OSX - ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/log/docker.log

  • Windows - Get-EventLog -LogName Application -Source Docker -After (Get-Date).AddMinutes(-5) | Sort-Object Time

2.3. Assignments

2.3.1. Install

  1. Zainstaluj Docker

  2. Czym różni się Docker od Vagrant?