動作確認


リポジトリの確認

http://gitlab.phper-na14.info/root/test へアクセスしリポジトリが空であることを確認します。

ソースコード登録

git グルーバル設定(既に実施している場合は不要)

$ git config --global user.name "Administrator"
$ git config --global user.email "[email protected]"

ソースコードをリポジトリに登録します。README.mdはコピーします。

$ git clone http://[email protected]/root/test.git 
$ cd test
$ cp ../files/README.md .
$ git add README.md
$ git status
$ git commit -m "add README"
$ git push -u origin master

リポジトリの確認

http://gitlab.phper-na14.info/root/test へアクセスし、先程pushしたソースが登録されていることを確認します。

レジストリの動作確認

リポジトリの確認

http://gitlab.phper-na14.info/root/test/container_registry へアクセスしレジストリが空であることを確認します。

プライベートレジストリへのログイン

$ docker login registry.phper-na14.info
Username (root): root
Password: 
Login Succeeded

イメージの登録

$ docker tag library/python:3.4 registry.phper-na14.info/root/test/python:3.4
$ docker push registry.phper-na14.info/root/test/python:3.4
e5ba092876c2: Pushed 
fafff35446a4: Pushed 
e1013fcbd78a: Pushed 
ab0825ad21e8: Pushed 
e7b0b4cd055a: Pushed 
445ed6ee6867: Pushed 
c59fa6cbcbd9: Pushed 
8d4d1ab5ff74: Pushed 
3.4: digest: sha256:b5422da942dc1480c28267865b852b7a46a8b91a99de824a1da23c6d9267cf27 size: 2007

イメージの登録確認

http://gitlab.phper-na14.info/root/test/container_registry へアクセスし、先程pushしたイメージが登録されていることを確認します。

results matching ""

    No results matching ""