w trakcie
Aktualizacja aplikacji kontenerowej
dasdasd
docker ps --format '{{.ID}} | {{.Names}} | {{.RunningFor}} | {{.Image}}'
41f42679b941 | remmina | 3 weeks ago | lscr.io/linuxserver/remmina:latest
4940a3c2634e | cloudflare_tunnel_motozibi | 2 months ago | cloudflare/cloudflared:latest
f08ef9f34657 | cloudflare_tunnel_itadmin | 2 months ago | cloudflare/cloudflared:latest
2fa03275628c | phpipam-web-1 | 2 months ago | mrlesmithjr/docker-phpipam:latest
c94aac1afc44 | phpipam-db-1 | 2 months ago | mrlesmithjr/mysql:latest
4813208f8451 | bookstack | 2 months ago | lscr.io/linuxserver/bookstack
7a45eb22e22f | bookstack_db | 2 months ago | lscr.io/linuxserver/mariadb
c20fdb138b1c | uptime-kuma | 2 months ago | louislam/uptime-kuma:latest
f8895cbdf360 | graphite | 3 months ago | graphiteapp/graphite-statsd
1a307eeed35b | portainer | 3 months ago | portainer/portainer-ce:latest
da5643ce8ecb | guacdlocal | 7 months ago | linuxserver/guacd
fdacb1e52f08 | gitea | 7 months ago | gitea/gitea:latest
5d1bb2b08dae | pihole | 7 months ago | pihole/pihole
8b1542cda54d | my-dashboard | 7 months ago | lissy93/dashy:latest
f55dde4acb5f | plex | 7 months ago | lscr.io/linuxserver/plex:latest
9441b01bb39b | airsonic-advanced | 7 months ago | airsonicadvanced/airsonic-advanced:latest
5497f2c36554 | librespeed | 7 months ago | lscr.io/linuxserver/librespeed:latest
2e6041c1f2f8 | nginx-proxy-manager | 7 months ago | jc21/nginx-proxy-manager:latest
Sprawdzamy jakie mamy obrazy aplikacji w systemie
docker image ls REPOSITORY TAG IMAGE ID CREATED SIZE lscr.io/linuxserver/remmina latest e5dec7db8e31 3 weeks ago 1.7GB jlesage/firefox latest 407d20826fc4 4 weeks ago 556MB cloudflare/cloudflared latest 41fc84304b17 2 months ago 57MB telegraf latest eb7c9aa60290 2 months ago 383MB grafana/grafana latest d365f61c9bc6 2 months ago 309MB lscr.io/linuxserver/bookstack latest 2e805da40150 3 months ago 281MB prom/prometheus latest a07b618ecd1d 3 months ago 234MB portainer/portainer-ce latest a87d51c7a324 4 months ago 272MB prom/snmp-exporter latest 49163fc042de 7 months ago 20MB linuxserver/guacd latest 400228be9c46 7 months ago 121MB lscr.io/linuxserver/plex latest 059c4f2913ff 7 months ago 394MB pihole/pihole latest 159986ad1a2e 7 months ago 319MB lscr.io/linuxserver/webtop latest 8a56d04d1042 7 months ago 1.24GB lscr.io/linuxserver/mariadb latest de23eed1ffd5 7 months ago 287MB lscr.io/linuxserver/librespeed latest 29d546a78282 7 months ago 77MB jc21/nginx-proxy-manager latest 60a6ddeeaa79 7 months ago 929MB graphiteapp/graphite-statsd latest 773e5adb8918 7 months ago 853MB gitea/gitea latest 54e1c09fe090 8 months ago 255MB hatamiarash7/mikrotik-exporter latest d5341a144951 8 months ago 9.56MB louislam/uptime-kuma latest 930a7e08142f 8 months ago 350MB lissy93/dashy latest a5e8df17245a 10 months ago 483MB grafana/grafana 9.0.5 2b174b8f29e6 11 months ago 288MB airsonicadvanced/airsonic-advanced latest 21f8b222d8a0 12 months ago 1.05GB mrlesmithjr/docker-phpipam latest 53b1fab240e6 2 years ago 331MB mrlesmithjr/mysql latest 42fd9415a4a9 5 years ago 269MB
sprawdzamy kiedy był ten wybrany obraz utworzony
docker inspect portainer/portainer-ce | grep "Created" "Created": "2023-02-23T02:14:25.154127588Z",
docker pull portainer/portainer-ce:latest Using default tag: latest latest: Pulling from portainer/portainer-ce 772227786281: Already exists 96fd13befc87: Already exists 5171176db7f2: Pull complete a143fdc4fa02: Pull complete b622730c7bdc: Pull complete 69dd1305b74e: Pull complete 4bb7bcd48fb2: Pull complete 747926f5dc9b: Pull complete 7ae4f5080888: Pull complete 423e29712802: Pull complete 4f4fb700ef54: Pull complete Digest: sha256:d0e89bf59a3e8bb479226579673934a6338e4ffbe6946d4a55e12af632727c03 Status: Downloaded newer image for portainer/portainer-ce:latest docker.io/portainer/portainer-ce:latest
docker ps |grep portainer 1a307eeed35b a87d51c7a324 "/portainer" 3 months ago Up 16 hours 8000/tcp, 9443/tcp, 0.0.0.0:9000->9000/tcp, :::9000->9000/tcp portainer root@docker:~# docker stop 1a307eeed35b 1a307eeed35b root@docker:~# docker rm 1a307eeed35b 1a307eeed35b
docker run -d -p 9000:9000 --network=npm_proxy --ip 192.168.89.170 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v /home/dockeruser/docker/appdata/portainer/data:/data portainer/portainer-ce:latest
time="2023-06-26T16:51:43+02:00" level=info msg="Watchtower 1.5.3" time="2023-06-26T16:51:43+02:00" level=info msg="Using no notifications" time="2023-06-26T16:51:43+02:00" level=info msg="Only checking containers using enable label" time="2023-06-26T16:51:43+02:00" level=info msg="Scheduling first run: 2023-06-26 16:56:43 +0200 CEST" time="2023-06-26T16:51:43+02:00" level=info msg="Note that the first check will be performed in 4 minutes, 59 seconds" time="2023-06-26T16:56:52+02:00" level=info msg="Found new louislam/uptime-kuma:latest image (00ed155e8adb)" time="2023-06-26T16:56:52+02:00" level=info msg="Stopping /uptime-kuma (9aedb2ac424c) with SIGTERM" time="2023-06-26T16:56:57+02:00" level=info msg="Creating /uptime-kuma" time="2023-06-26T16:56:58+02:00" level=info msg="Removing image 930a7e08142f" time="2023-06-26T16:56:58+02:00" level=info msg="Session done" Failed=0 Scanned=1 Updated=1 notify=no time="2023-06-26T17:16:22+02:00" level=info msg="Watchtower 1.5.3" time="2023-06-26T17:16:22+02:00" level=info msg="Using notifications: smtp" time="2023-06-26T17:16:22+02:00" level=info msg="Only checking containers using enable label" time="2023-06-26T17:16:22+02:00" level=info msg="Scheduling first run: 2023-06-26 17:21:22 +0200 CEST" time="2023-06-26T17:16:22+02:00" level=info msg="Note that the first check will be performed in 4 minutes, 59 seconds" time="2023-06-26T17:21:27+02:00" level=info msg="Found new docker.io/gitea/gitea:latest image (a300af46a97b)" time="2023-06-26T17:21:29+02:00" level=info msg="Stopping /gitea (095534dc167b) with SIGTERM" time="2023-06-26T17:21:31+02:00" level=info msg="Creating /gitea" time="2023-06-26T17:21:31+02:00" level=info msg="Removing image 54e1c09fe090" time="2023-06-26T17:21:31+02:00" level=info msg="Session done" Failed=0 Scanned=2 Updated=1 notify=no time="2023-06-26T17:26:24+02:00" level=info msg="Session done" Failed=0 Scanned=2 Updated=0 notify=no time="2023-06-26T17:31:24+02:00" level=info msg="Session done" Failed=0 Scanned=2 Updated=0 notify=no
Niepotrzebne obrazy
runningImages=$(docker ps -a --format "< {{.Image}} >")
root@docker:/home/dockeruser/docker/appdata/plex# docker images --format "table < {{.Repository}}:{{.Tag}} >\t< {{.ID}} >\t" | grep -v "$runningImages"
< REPOSITORY:TAG > < IMAGE ID >
< plexinc/pms-docker:latest > < c19d94b2baa0 >
< jlesage/firefox:latest > < 407d20826fc4 >
< telegraf:latest > < eb7c9aa60290 >
< grafana/grafana:latest > < d365f61c9bc6 >
< lscr.io/linuxserver/bookstack:latest > < 2e805da40150 >
< prom/prometheus:latest > < a07b618ecd1d >
< prom/snmp-exporter:latest > < 49163fc042de >
< linuxserver/guacd:latest > < 400228be9c46 >
< pihole/pihole:latest > < 159986ad1a2e >
< lscr.io/linuxserver/webtop:latest > < 8a56d04d1042 >
< lscr.io/linuxserver/mariadb:latest > < de23eed1ffd5 >
< graphiteapp/graphite-statsd:latest > < 773e5adb8918 >
< hatamiarash7/mikrotik-exporter:latest > < d5341a144951 >
< grafana/grafana:9.0.5 > < 2b174b8f29e6 >
docker image prune -a WARNING! This will remove all images without at least one container associated to them. Are you sure you want to continue? [y/N] y Deleted Images: untagged: grafana/grafana:latest untagged: grafana/grafana@sha256:00a4d2889c2b32f86c50673b1a82cb5b45349f1c24b0a882d11a53518e2ecae4 (...)
deleted: sha256:0274b306e221353e15f14a99a2c3ae6f615d41078631f55cd559899134d0b7e4
deleted: sha256:4a2d8cfce66ab97c882e2740ced88c9664e719ea1fec53dc3d553b6972bbc738
deleted: sha256:08358107476f1b2a702873a35899169761d5eb69efcb56e2602a01e5e6e38c99
Total reclaimed space: 3.359GB


