본문 바로가기

리눅스

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

반응형

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

docker login fail

docker login gitla.sangchul.kr:4567
$ 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
$ vim ~/.docker/config.json
{
  "auths": {
    "gitlab.sangchul.kr": {
      "auth": "YW50aTEzNdDY6cXVzdGtkY2pm"
    }
  },
  "HttpHeaders": {
    "User-Agent": "Docker-Client/18.09.6 (linux)"
  }
}

 

728x90
반응형