mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-01 21:47:57 +01:00
12 lines
324 B
Bash
12 lines
324 B
Bash
|
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 tag hello-world $IP/library/hello-world
|
||
|
docker push $IP/library/hello-world
|
||
|
|
||
|
docker tag docker $IP/library/docker
|
||
|
docker push $IP/library/docker
|