mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-21 08:07:59 +01:00
9 lines
251 B
Bash
9 lines
251 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
IP=`ip addr s eth0 |grep "inet "|awk '{print $2}' |awk -F "/" '{print $1}'`
|
||
|
export DOCKER_CONTENT_TRUST=1
|
||
|
export DOCKER_CONTENT_TRUST_SERVER=https://$IP:4443
|
||
|
|
||
|
docker login -u admin -p Harbor12345 $IP
|
||
|
docker pull $IP/library/tomcat:latest
|