mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-23 00:57:44 +01:00
Update testprepare.sh
change docker login address to localhost
This commit is contained in:
parent
5f6b53b93b
commit
fc92df0d17
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user