Skip to content

Docker

Important

Please keep in mind that the following should also be done for your personal computer, if you have Docker running inside of it.

Warning

You must complete the following before starting up Docker for the first time. If you have started the Docker service beforehand, then the VM loses network connectivity, and you can only access VM via console from ETAIS Self Service .

This is only possible, if you have set a root password for the host.

If you are unable to connect to your machine, and do not have a password, please write to support@hpc.ut.ee

After successfully installing Docker and finishing the essential configuration for it, one must put the following configuration into a daemon.json file in the /etc/docker/ directory. So the absolute path is /etc/docker/daemon.json. This file doesn't exist after the initial setup, one must create it and put the following content into it themselves:

{
  "bip": "192.168.67.1/24",
  "fixed-cidr": "192.168.67.0/24",
  "storage-driver": "overlay2",
  "mtu": 1400,
  "default-address-pools": [
    {
      "base": "192.168.167.1/24",
      "size": 24
    },
    {
      "base": "192.168.168.1/24",
      "size": 24
    },
    {
      "base": "192.168.169.1/24",
      "size": 24
    },
    {
      "base": "192.168.170.1/24",
      "size": 24
    },
    {
      "base": "192.168.171.1/24",
      "size": 24
    },
    {
      "base": "192.168.172.1/24",
      "size": 24
    },
    {
      "base": "192.168.173.1/24",
      "size": 24
    },
    {
      "base": "192.168.174.1/24",
      "size": 24
    }
  ]
}
After the daemon.json file with the previous content is in place, one can start the Docker in the VM.