Dockerfile — an image recipe and docker build
cheat sheet · Docker 29.1 · Ubuntu 24.04 https://lab.dimsanych.ru/en/wiki/dockerfile/Cheat sheet
-
sudo docker build -t app:1.1 .build from ./Dockerfile -
sudo docker build -t app:1.1 -f Dockerfile.dev .another file -
sudo docker build --no-cache -t app:1.1 .everything, no cache -
sudo docker history app:1.1image layers -
sudo docker image inspect -f '{{json .Config.Cmd}}' app:1.1 -
sudo docker run --rm app:1.1 ls /wwwwhat got into the image