Docker

Dockerized Applications, Everything around Docker


Change default Docker location

By default, Docker will store its data in /var/lib/docker. Sometimes it’s needed to change this location. There are several ways to do it. The easiest is to create the following file: /etc/systemd/system/docker.service.d/docker-storage.conf [Service] ExecStart= ExecStart=/usr/bin/docker daemon -H fd:// –graph=”/home/docker” Then you just need to refresh systemctl, make sure your folder exists and restart docker: mkdir […]


Install Docker on Ubuntu/Debian

Install some prerequisites: apt-get update apt-get install apt-transport-https ca-certificates curl software-properties-common Add Docker’s official GPG key: curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add – Add the repository: add-apt-repository \ “deb [arch=amd64] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable” Install Docker: apt-get update apt-get install docker-ce Try “docker info”, “docker version” or “docker ps -a” to check, […]