Installation
Install docker and docker-compose:
$ sudo apt install docker docker-compose
Add your user to docker group:
$ sudo usermod -aG docker [username]
Start and stop docker
Manually start:
$ sudo systemctl start docker
Manually stop:
$ sudo systemctl stop docker
Configure start on boot:
$ sudo systemctl enable docker
Disable start on boot:
$ sudo systemctl disable docker
Proxy configuration
Create a systemd drop-in directory for the docker service:
$ sudo mkdir -p /etc/systemd/system/docker.service.d
Create a file called /etc/systemd/system/docker.service.d/http-proxy.conf that adds the HTTP_PROXY environment variable:
[Service]
Environment="HTTP_PROXY=http://proxy.hostname:proxy_port/"
Environment="HTTPS_PROXY=https://proxy.hostname:proxy_port/"
Environment="NO_PROXY="localhost,127.0.0.1,::1"
Brak komentarzy:
Prześlij komentarz