User Tools

Site Tools


apps:docker

Docker

FIXME FIXME FIXME

docker compose up -d --force-recreate
    --force-recreate    Recreate containers even if their configuration
                        and image haven't changed.

/etc/docker/daemon.json

{
  "bip": "10.3.0.1/16",
  "log-driver": "json-file",
  "log-opts": {
    "max-size": "100m",
    "max-file": "3"
  }
}
--- /var/lib/docker/containers/2e82c19dc7f787d26fadaa5f25c66912320c49e480c9b958ac6d0622aa0c1606 ---------------------
                         /..
   22.3 GiB [##########]  2e82c19dc7f787d26fadaa5f25c66912320c49e480c9b958ac6d0622aa0c1606-json.log
    8.0 KiB [          ]  config.v2.json
e   4.0 KiB [          ] /mounts
e   4.0 KiB [          ] /checkpoints
    4.0 KiB [          ]  hostconfig.json
    4.0 KiB [          ]  resolv.conf
    4.0 KiB [          ]  hosts
    4.0 KiB [          ]  resolv.conf.hash
    4.0 KiB [          ]  hostname


root@server:~# cat /var/lib/docker/containers/2e82c19dc7f787d26fadaa5f25c66912320c49e480c9b958ac6d0622aa0c1606/config.v2.json | jq '.Name'
"/testcontainer-1"

Noteable Images

apps/docker.txt · Last modified: 2024-08-18 02:01 by Manuel Frei