Update testprepare.sh

change docker login address to localhost
This commit is contained in:
yhua123 2016-06-15 11:19:10 +08:00 committed by GitHub
parent 5f6b53b93b
commit fc92df0d17

View File

@ -1,11 +1,10 @@
IP=`ip addr s eth0 |grep "inet "|awk '{print $2}' |awk -F "/" '{print $1}'`
#echo $IP
docker pull hello-world
docker pull docker
#docker login -u admin -p Harbor12345 $IP
docker login -u admin -p Harbor12345 127.0.0.1
docker tag hello-world $IP/library/hello-world
docker push $IP/library/hello-world
docker tag hello-world 127.0.0.1/library/hello-world
docker push 127.0.0.1/library/hello-world
docker tag docker 127.0.0.1/library/docker
docker push 127.0.0.1/library/docker
docker tag docker $IP/library/docker
docker push $IP/library/docker