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"]}
| Meta (Instagram, Facebook) | |
| // Узлы | |
| 157.240.253.174, 157.240.253.172, 157.240.253.167, 157.240.253.63, 157.240.253.32 | |
| 157.240.252.174, 157.240.252.172, 157.240.252.167, 157.240.252.63, 157.240.252.38 | |
| 57.144.112.34, 57.144.110.1, 157.240.205.174, 87.245.223.97 | |
| // Подсети | |
| 213.102.128.0/24 | |
| 204.15.20.0/22 | |
| 199.201.0.0/16 |
| [Unit] | |
| Description=Docker Application Container Engine | |
| Documentation=https://docs.docker.com | |
| After=network-online.target docker.socket firewalld.service containerd.service time-set.target | |
| Wants=network-online.target containerd.service | |
| Requires=docker.socket | |
| [Service] | |
| Type=notify | |
| # the default is not to use systemd for cgroups because the delegate issues still |
| """ | |
| A script for automatically generating CUE files from a list of timestamps and titles, like | |
| those commonly seen in YouTube descriptions. | |
| Usage: | |
| python cuemaker.py --output="Filename without extension" "timestamps.txt" "Album name" "Artist name" | |
| "timestamps.txt" should be a text file containing a list of timestamps and titles like: | |
| 00:00 Track 1 |
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"]}
| # File: /etc/systemd/system/docker-tcp.socket | |
| [Unit] | |
| Description=Docker Socket for the API | |
| [Socket] | |
| ListenStream=2375 | |
| BindIPv6Only=both | |
| Service=docker.service | |
| [Install] |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
| -- show running queries (pre 9.2) | |
| SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
| FROM pg_stat_activity | |
| WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
| ORDER BY query_start desc; | |
| -- show running queries (9.2) | |
| SELECT pid, age(clock_timestamp(), query_start), usename, query | |
| FROM pg_stat_activity | |
| WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |