Last active
August 29, 2015 14:07
-
-
Save philcryer/1be8a9f18af08f711e84 to your computer and use it in GitHub Desktop.
shipyard getting a 404 when talking to docker-registry
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0) startup a docker registry, in docker, listening on :5000 | |
docker run \ | |
-e SETTINGS_FLAVOR=dev \ | |
-e STORAGE_PATH=/tmp/registry \ | |
-e standalone=1 \ | |
-e SEARCH_BACKEND=sqlalchemy \ | |
-p 5000:5000 \ | |
-v /tmp/registry:/tmp/registry \ | |
registry | |
1) startup docker images to run Shipyard (http://shipyard-project.com/docs/quickstart/) | |
a) Start an data volume instance of RethinkDB: | |
docker run -it -d --name shipyard-rethinkdb-data --entrypoint /bin/bash shipyard/rethinkdb -l | |
b) Start RethinkDB with using the data volume container: | |
docker run -it -P -d --name shipyard-rethinkdb --volumes-from shipyard-rethinkdb-data shipyard/rethinkdb | |
c) Start the Shipyard controller: | |
docker run -it -p 8080:8080 -d --name shipyard \\n --link shipyard-rethinkdb:rethinkdb shipyard/shipyard | |
2) start the the Shipyard CLI. | |
docker run -it shipyard/shipyard-cli | |
3) login to Shipyard from the Shipyard CLI | |
shipyard cli> shipyard login | |
URL: http://192.168.59.103:8080 | |
Username: admin | |
Password: | |
shipyard cli> | |
4) add engine to shipyard | |
shipyard cli> shipyard add-engine --id docker-registry --addr http://192.168.59.103:5000 --cpus '1.0' --memory '1024' —-label 'dev' | |
shipyard cli> shipyard engines | |
ID Cpus Memory Host Labels | |
docker-registry 1.00 1024.00 http://192.168.59.103:-label | |
5) docker registry container immediately throws a 404 | |
172.17.42.1 - - [14/Oct/2014:23:21:32] "GET /v1.10/events HTTP/1.1" 404 233 "-" "Go 1.1 package http" | |
2014-10-14 23:21:32,252 INFO: 172.17.42.1 - - [14/Oct/2014:23:21:32] "GET /v1.10/events HTTP/1.1" 404 233 "-" "Go 1.1 package http" | |
172.17.42.1 - - [14/Oct/2014:23:21:32] "GET /v1.10/containers/json?all=0 HTTP/1.1" 404 233 "-" "Go 1.1 package http" | |
2014-10-14 23:21:32,253 INFO: 172.17.42.1 - - [14/Oct/2014:23:21:32] "GET /v1.10/containers/json?all=0 HTTP/1.1" 404 233 "-" "Go 1.1 package http" | |
6) trying to list containers also gives 404 (makes sense since we don’t have any containers yet?) | |
shipyard cli> shipyard containers | |
172.17.42.1 - - [14/Oct/2014:23:22:22] "GET /v1.10/containers/json?all=1 HTTP/1.1" 404 233 "-" "Go 1.1 package http" | |
2014-10-14 23:22:22,050 INFO: 172.17.42.1 - - [14/Oct/2014:23:22:22] "GET /v1.10/containers/json?all=1 HTTP/1.1" 404 233 "-" "Go 1.1 package http" | |
7) I’ve gotten to this point before, I’ve used docker to tag and then push images to the repo - that works, but even then shipyard never sees them |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment