Log out from a Docker registry
docker logout [SERVER]
Command | Description |
---|---|
docker | The base command for the Docker CLI. |
Log out of a Docker Registry located on the specified SERVER
. You can
specify a URL or a hostname
for the SERVER
value. If you do not specify a
SERVER
, the command attempts to log you out of Docker’s public registry
located at https://registry-1.docker.io/
by default.
# docker logout localhost:8080
docker-login(1) to log in to a Docker registry server.
$ docker logout localhost:8080