August 2018
Intermediate to advanced
352 pages
12h 30m
English
The following are two syntaxes for the command that is used to push a Docker image to a registry:
$ docker image push [OPTIONS] NAME[:TAG]
$ docker push [OPTIONS] NAME[:TAG]
To push an image to a Docker registry, go through the following steps:
$ docker image tag myapache2 cookbook/myapache2
Here, the image is tagged as cookbook/myapache2 because, in the next step, we will be pushing this image to the Docker Hub user cookbook.
Read now
Unlock full access