-
git clone
git clone [email protected]:NOGAYAMA/abcbank-webapp.git cd abcbank-webapp
-
build image from Dockerfile
docker image build --tag abcbank-webapp:latest .
-
(optional) smoketest on local
docker run -d -p 5000:5000 abcbank-webapp:latest docker ps curl localhost:5000 docker stop $(docker ps -lq) docker rm $(docker ps -lq)
-
make sure user account on DockerHub
-
create a new tag of the image
$ docker image list REPOSITORY TAG IMAGE ID CREATED SIZE abcbank-webapp latest b48c890a6c82 9 minutes ago
docker image tag b48c890a6c82 nogayama/abcbank-webapp:latest
-
push the image to dockerhub
docker image push nogayama/abcbank-webapp:latest
After pushing, you can see image on DockerHub e.g., nogayama
-
pull the image
docker image pull nogayama/abcbank-webapp:latest
-
login to IBM Cloud
$ ibmcloud login --sso
-
(optional) change region
ibmcloud cr region-set
-
Login to Container registry
$ ibmcloud cr login
-
add namespace
$ ibmcloud cr namespace-add nogayama
-
add tag
docker tag abcbank-web "de.icr.io/nogayama/abcbank-web:latest"
-
push
#docker push <region>.icr.io/<my_namespace>/<image_repo>:<tag> $ docker push "jp.icr.io/nogayamaapp/mav:0.0.1"
$ ibmcloud cr image-list イメージをリストしています... リポジトリー タグ ダイジェスト 名前空間 作成 サイズ セキュリティー状況 jp.icr.io/nogayamaapp/mav 0.0.1 8da58d49aea9 nogayamaapp 2 hours ago 381 MB 3 件の問題 OK