2016-08-31 06:12:22 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-01-06 08:30:54 +01:00
|
|
|
IP=$(hostname -I | awk '{print $1}')
|
2016-08-31 06:12:22 +02:00
|
|
|
docker pull hello-world
|
2018-04-12 13:51:16 +02:00
|
|
|
docker pull busybox
|
2016-08-31 06:12:22 +02:00
|
|
|
docker login -u admin -p Harbor12345 $IP:5000
|
|
|
|
|
|
|
|
docker tag hello-world $IP:5000/library/hello-world:latest
|
|
|
|
docker push $IP:5000/library/hello-world:latest
|
2019-10-14 12:25:11 +02:00
|
|
|
echo "$? pushed hello world"
|
2016-08-31 06:12:22 +02:00
|
|
|
|
2018-04-12 13:51:16 +02:00
|
|
|
docker tag busybox $IP:5000/library/busybox:latest
|
|
|
|
docker push $IP:5000/library/busybox:latest
|
2019-10-14 12:25:11 +02:00
|
|
|
echo "$? pushed busybox"
|