Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
tingweiwang
/
k8s
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f70e6d10
authored
Nov 28, 2019
by
tingweiwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
harbor 推送镜像login操作
1 parent
ea5aa241
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
script/harbor/push-autodl-workspace.sh
script/harbor/push-base-images.sh
script/harbor/push-autodl-workspace.sh
View file @
f70e6d1
...
...
@@ -28,6 +28,7 @@ for z in `echo $i |awk -F / '{print $3}'`
do
echo
$z
docker tag
$i
$harbor_host
/autodl-workspace/
$z
docker login
$harbor_host
-u admin -p
$harbor_passwd
docker push
$harbor_host
/autodl-workspace/
$z
done
done
...
...
script/harbor/push-base-images.sh
View file @
f70e6d1
...
...
@@ -18,6 +18,7 @@ docker tag registry.cn-hangzhou.aliyuncs.com/google-containers/pause-amd64:3.0 $
docker tag nginx:latest
$harbor_host
/k8s/nginx:latest
#docker tag hb.seetatech.com/k8s/operator:0.0.19 $harbor_host/k8s/operator:0.0.19
echo
"开始推送镜像到harbor"
docker login
$harbor_host
-u admin -p
$harbor_passwd
docker push
$harbor_host
/k8s/image-proxy:v0.9.0
docker push
$harbor_host
/k8s/ubuntu-basic:16.04
docker push
$harbor_host
/k8s/coredns:1.5.0
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment