いろいろ発見メモ

さまざまな試行と実験と発見と調べ物のメモ書きです

Docker の実験

Mac OSX 上で Docker を色々試している。

Get Started with Docker

の手順に従って進めているが、実際に実行してみると上記の記述とは途中細かな違いもある。大部分は問題なのだが、一箇所だけ引っかかったところがあるのでメモ。

第6ステップの

Tag, push, & pull your image

の中で、できたイメージを push しろと言われる。web ページの記述によれば、Docker Hub のアカウント情報を入力して push が進むとあるのだが、そのままだと単に

unauthorized: access to the requested resource is not authorized

と言われて push できない。

結局この push の前に docker login コマンドを実行して認証しておく必要がある。

memo.これは Docker 1.8.1 からの仕様?

ともあれ一連の手続きを済ませると

  • installed Docker
  • run a software image in a container
  • located an interesting image on Docker Hub
  • run the image on your own machine
  • modified an image to create your own and run it
  • create a Docker Hub account and repository
  • pushed your image to Docker Hub for others to share

といったことをひと通り行うことになる。