Build an image from a Dockerfile.
Section: Images
Build an image
bash
bash
docker image build -t myapp:dev .Explanation
Equivalent to `docker build`.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Images