Skip to content

Create an Image without Compose

The following commands are equivalent and can be used to build a docker image

  • docker image build
  • docker build
  • docker buildx build
  • docker builder build

For example, assuming the directory structure:

src
└── analysis
    └── Dockerfile

Inside src run

docker buildx build -t azavea/pfb-network-connectivity:0.16.1 -f analysis/Dockerfile .

to create an image called azavea/pfb-network-connectivity:0.16.1 using the Dockerfile in the analysis directory.