[docker] docker login fails while docker-compose is installed on Ubuntu 18.04

docker login fail

$ docker login gitla.sangchul.kr:4567
Username: admin
Password:
Error saving credentials: error storing credentials - err: exit status 1, out: `Cannot autolaunch D-Bus without X11 $DISPLAY`

config.json 파일 생성
$ vim ~/.docker/config.json
{
"auths": {
"gitlab.sangchul.kr": {
"auth": "YW50aTEzNdDY6cXVzdGtkY2pm"
}
},
"HttpHeaders": {
"User-Agent": "Docker-Client/18.09.6 (linux)"
}
}

◀ PREV 12345···300 NEXT ▶