1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

IBM CloudにDockerコンテナをpushしてみた

Posted at

IBM CloudにDockerコンテナをpushしてみたときの備忘録です。

事前準備

  • IBM CLI(command-line interface)
  • IBM Cloud Kubernetes Service plug-in
  • ibmcloud plugin install container-service -r Bluemixでインストール可能
  • ibmcloud plugin listで確認が可能
  • IBM Cloud Kubernetes Service plug-in
  • ibmcloud plugin install container-registry -r Bluemixでインストール可能
  • ibmcloud plugin listで確認が可能
  • Docker

IBM Cloudにログイン

ibmcloud login

Container RegistryにDockerをPush

//自分用のネームスペースを作成
ibmcloud cr namespace-add <my_namespace>

//Dockerイメージをbuild
docker build --tag registry.ng.bluemix.net/<my_namespace>/XXX <dockerファイル>

//イメージが出来ていることを確認
docker images

//イメージをIBM CloudにPush
docker push registry.ng.bluemix.net/<namespace>/XXX

所感

これでIBM Cloud上にDockerイメージは設置できました。
非常に簡単でした。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?