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"]} 
| #!/bin/bash | |
| # | |
| # Written by Chris Arceneaux | |
| # GitHub: https://github.com/carceneaux | |
| # Email: [email protected] | |
| # Website: http://arsano.ninja | |
| # | |
| # Note: This code is a stop-gap to erase Job Artifacts for a project. I HIGHLY recommend you leverage | |
| # "artifacts:expire_in" in your .gitlab-ci.yml | |
| # | 
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"]}
| .PHONY: all setup init join cni reset uninstall | |
| kv ?= 1.22.4-00 | |
| dv ?= 5:20.10.14~3-0~ubuntu-jammy | |
| ha ?= 'false' | |
| cpe ?= none | |
| aaa ?= none | |
| all: init cni | |
| setup: | 
| #!/bin/bash | |
| ################################################################# | |
| function _spinner() { | |
| # $1 start/stop | |
| # | |
| # on start: $2 display message | |
| # on stop : $2 process exit status | |
| # $3 spinner function pid (supplied from stop_spinner) | 
| #! /bin/bash | |
| # ECHO COMMAND | |
| # echo Hello World! | |
| # VARIABLES | |
| # Uppercase by convention | |
| # Letters, numbers, underscores | |
| NAME="Bob" | |
| # echo "My name is $NAME" |