Tag: Docker-Slim

cheatsheet/docker-slim

オプション効果
–state-pathdocker-slim の状態が保持されるパス、docker-slim コマンドが書き込めるパスにする
–target元のイメージ
–tagスリムになったイメージのタグ
–http-probeデフォルトは enable、ただ distcc の場合、HTTP ポートではないので false にしている
–execdocker-slim が動的にアプリケーションの振る舞いを解析する際に実行するシェルスクリプト

time docker build  . -t genpi64-distcc-large:latest
docker-slim --state-path ~/tmp/docker-slim build --target genpi64-distcc-large:latest --tag ghcr.io/exampleuser/genpi64-distcc-docker:latest --http-probe=false --exec "/need.bash"
docker push ghcr.io/exampleuser/genpi64-distcc-docker:latest

参考

オフィシャル

Read more...