August 2018
Intermediate to advanced
352 pages
12h 30m
English
The docker login command lets you log in to more than one Docker registry at the same time. Similarly, the docker logout command lets you log out from the specified server. Here is the syntax for the Docker login and logout commands:
$ docker login [OPTIONS] [SERVER]$ docker logout [SERVER]
By default, both the docker login and docker logout commands assume https://hub.docker.com/ as the default registry, but this can be changed.
Let's learn a little more about this process by experimenting with the following, as depicted in the following screenshot:
Read now
Unlock full access