# save image
docker save $NAME -o $OUTPUT_FILE.tar
# login to image and run the following:
# root
du -h -s app/ bin/ dev/ etc/ home/ lib/ lib64/ media/ opt/ run/ sbin/ srv/ sys/ tmp/ usr/ var/
# usr
du -h -s bin/ include/ lib libexec/ local/ sbin/ share/
# app
du -h -s apps/ node_modules/ packages/
# by size
du -h | sort -h
Check vulnerabilities
trivy image $TAG --scanners vuln
Run Image
# --net=host publishes host network to container, use it only for testing!
docker run --name $NAME -p 8080:8080 --net=host -d $TAG
# stop it with
docker stop $NAME