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
@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
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