When building a docker image you normally use docker build .
.
But i\'ve found that you can specify --pull
, so the whole command would look like
Simple answer. docker build
is used to build from a local dockerfile. docker pull
is used to pull from docker hub. If you use docker build without a docker file it throws an error.
When you specify --pull
or :latest
docker will try to download the newest version (if any)
Basically, if you add --pull, it will try to pull the newest version each time it is run.