# Installation

### install current version (ubutnu/debian)

```shell
curl -sSL https://get.docker.com | sh
sudo usermod -aG docker $USER
newgrp docker # to add docker in your current shell instance
```


### execute docker without sudo

* `sudo groupadd docker` if not already exists
* `sudo usermod -aG docker $USER` add user to group
* logout and login, or restart on VM


### proxy settings

create file in `/etc/systemd/system/docker.service.d/http-proxy.conf`

```conf
[Service]
Environment="HTTPS_PROXY=http://www-zproxy.myProxy.com:80/"​
Environment="HTTP_PROXY=http://www-zproxy.myProxy.com:80/"
Environment="NO_PROXY=localhost,127.0.0.1,myProxy.com,10.0.0.0/8"
```

than execute

```bash
systemctl daemon-reload
systemctl restart docker

systemctl show --property Environment docker
```