Browse Source

update til docker

master
Markus Bergholz 2 years ago
committed by Markus Bergholz
parent
commit
7791211e41
  1. 30
      til.md

30
til.md

@ -113,6 +113,16 @@ copy files from an image to `/tmp/some.file`
docker cp $(docker create my/image:latest):/etc/some.file /tmp/some.file
### curl docker sock api
```
curl -s --unix-socket /var/run/docker.sock http://localhost/services|jq '.[0]'
curl --unix-socket /var/run/docker.sock http://localhost/nodes|jq
curl --unix-socket /var/run/docker.sock http://localhost/containers/json
docker service ls --format '{{json .}}'| jq '.'
```
## git
Set git to use the credential memory cache
@ -682,3 +692,23 @@ only subnet through shuttle
set scale below 100%
`gsettings set org.gnome.desktop.interface text-scaling-factor 0.85`
# influxdb
show retentions
```
SHOW RETENTION POLICIES on fluentbit
```
create default retention policy
```
CREATE RETENTION POLICY "15_days_metrics" ON "fluentbit" DURATION 15d REPLICATION 1 default
```
create database
```
create database fluentbit
```
Loading…
Cancel
Save