AWS ECR - Build Command Error

0

Hi,

I'm trying to push an image to AWS ECR via the push commands provided by AWS but commands are throwing an error. I was able to push the images successfully one hour ago but not able to proceed ahead.

I'm getting the error below for the docker build command -

Command -

docker build -t batch

Error -

ERROR: "docker buildx build" requires exactly 1 argument.
See 'docker buildx build --help'.

Usage:  docker buildx build [OPTIONS] PATH | URL | -

Start a build

I'm using VS Code to execute this command and my python scrip as well as Docker file are present in the same directory.

Swami S
asked 14 days ago167 views
1 Answer
0

As long as your dockerfile is in the current directory then run

Docker build . -t mytag
profile picture
EXPERT
answered 14 days ago
profile picture
EXPERT
reviewed 10 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions