Docker login / logout command
docker login: log in to a warehouse Docker mirror, if not mirrored storage address is specified, the default is the official repository Docker Hub
docker logout: Sign a Docker mirror warehouse, if not mirrored storage address is specified, the default is the official repository Docker Hub
grammar
docker login [OPTIONS] [SERVER]
docker logout [OPTIONS] [SERVER]
OPTIONS Description:
-u: login user name
-p: Login Password
Examples
Login to Docker Hub
docker login -u 用户名 -p 密码
Sign Docker Hub
docker logout