See this issue.
Docker best practise to Control and configure Docker with systemd.
-
Create
daemon.jsonfile in/etc/docker:{"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
See this issue.
Docker best practise to Control and configure Docker with systemd.
Create daemon.json file in /etc/docker:
{"hosts": ["tcp://0.0.0.0:2375", "unix:///var/run/docker.sock"]}
| int spaces = 20 | |
| int progress = 100 | |
| (progress + 1).times { | |
| // String * int is a shortcut to repeat string that many times | |
| String hash = "#" * Math.ceil((it*spaces)/100.0); | |
| // Carraige return (\r) returns the cursor to first character in line, overwriting other characters | |
| print(String.format("[%-" + spaces + "s] %d%s\r", hash, it, '%')) | |