docker-compose bundle

イシュー

  • ようやく、docker-compose build ができたので、docker-hubにプッシュしたい。

image name require エラー

$ docker-compose bundle
ERROR: Service 'workspace' doesn't define an image tag. An image name is require
d to generate a proper image digest for the bundle. Specify an image repo and ta
g with the 'image' option.

image に名前をつけて、docker-compose create したあと、docker-compose bundle して、docker-compose push すると、docker hubにイメージを登録できる

$ docker-compose create
Creating reliefdock_applications_1
Creating reliefdock_workspace_1
Creating reliefdock_php-fpm_1
Creating reliefdock_apache2_1
Creating reliefdock_mysql_1
Creating reliefdock_phpmyadmin_1
Creating reliefdock_hhvm_1
$
$ docker-compose push
(中略)

$

参考

$ docker login
$ docker pull snishinonetyearnet/relief-docker
s-nishino@PCR919 MINGW64 /z/Workspace/Docker/work
$ docker run -d --name relief_dock snishinonetyearnet/relief-docker
time="2018-03-16T09:17:35+09:00" level=info msg="Unable to use system certificat
e pool: crypto/x509: system root pool is not available on Windows"
db5ce3c84eb54f2d4de22031ee857fc2e70872d8173859b09e2ad88b297b8225

$ docker ps
time="2018-03-16T09:17:43+09:00" level=info msg="Unable to use system certificat
e pool: crypto/x509: system root pool is not available on Windows"
CONTAINER ID        IMAGE                              COMMAND             CREAT
ED             STATUS              PORTS               NAMES
db5ce3c84eb5        snishinonetyearnet/relief-docker   "/sbin/my_init"     8 sec
onds ago       Up 7 seconds                            relief_dock

$ docker exec -it relief_dock bash

でworkspace に入れた。