Harbor: Need to install docker-compose(1.7.1+) by yourself first and run this script again.

Created on 16 May 2017  Â·  5Comments  Â·  Source: goharbor/harbor

I run the centos 7.2 os in virtualbox. I only changed the hostname in harbor.cfg, and run sudo ./install, then error happens:
Note: docker version: 17.05.0
✖ Need to install docker-compose(1.7.1+) by yourself first and run this script again.

[jrq@freedom ~]$ docker --version
Docker version 17.05.0-ce, build 89658be
[jrq@freedom ~]$ docker-compose --version
docker-compose version 1.13.0, build 1719ceb
[jrq@freedom ~]$ uname -a
Linux freedom 3.10.0-514.16.1.el7.x86_64 #1 SMP Wed Apr 12 15:04:24 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Most helpful comment

This answer on Stackoverflow provided the much needed solution for me:

sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

All 5 comments

@fffffreedom can you tell the build that you are using? v1.1.1?

can you help to check the install location of docker-compose, is it in the sudo path?

If it is installed at /usr/local/bin, please install Harbor with sudo -E env "PATH=$PATH" or you can add local user to docker group, and then install Harbor with the added user.

I will close it, if you still encounter it. Feel free to reopen.

@wy65701436 i am using v1.1.1
docker-compose is installed in /usr/local/bin/
"sudo -E env "PATH=$PATH" ./install" works well,
but when try the second as you said, i add myself to the docker group and run ./install, it fails (preparing fail)..

@fffffreedom
I think you should make a directory /data and change the ownner of /data to yourself too,(or change it's mode to 666?) by default, harbor stores data in /data, if you want to change it, you need to modify several files.

This answer on Stackoverflow provided the much needed solution for me:

sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

Was this page helpful?
0 / 5 - 0 ratings

Related issues

reasonerjt picture reasonerjt  Â·  3Comments

Hotege picture Hotege  Â·  3Comments

mramanathan picture mramanathan  Â·  3Comments

272909106 picture 272909106  Â·  4Comments

Poil picture Poil  Â·  3Comments