dmjy
dmjy

Reputation: 1811

What is the difference between "docker image build" and "docker build"?

I am studying Docker now and it seems "docker image build" and "docker build" work in the same way.

  1. Are they totally the same?
  2. Is there a way to check Question 1?
  3. Why are there two identical commands (if they are the same)?

Upvotes: 7

Views: 6393

Answers (1)

Nico
Nico

Reputation: 129

Just to answer the question:

As already mentioned by @larsks and @Zeitounator both commands are doing exactly the same and there is no difference. It's written down in the docker documentation that way, but you can see that docker build and docker image build have the same description and the same options to use in their docoumentations.

Upvotes: 5

Related Questions