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
| $ docker pull stackbrew/fedora | |
| Pulling repository stackbrew/fedora | |
| 5cc9e91966f7: Download complete | |
| b7de3133ff98: Download complete | |
| 511136ea3c5a: Download complete | |
| ef52fb1fe610: Download complete | |
| shin@ubuntuvb:~/work/registry$ docker pull docker-test-image | |
| Pulling repository docker-test-image | |
| 83599e29c455: Download complete | |
| shin@ubuntuvb:~/work/registry$ docker rmi docker-test-image |
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
| $ curl -i -L -H"Authorization: Token $token" -o /dev/null -D - https://registry-staging.docker.io/v1/images/8dbd9e392a964056420e5d58ca5cc376ef18e2de93b5cc90e868a1bbc8318c1c/layer | |
| % Total % Received % Xferd Average Speed Time Time Time Current | |
| Dload Upload Total Spent Left Speed | |
| 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 | |
| HTTP/1.1 302 Moved Temporarily | |
| server: gunicorn/18.0 | |
| date: Mon, 26 May 2014 23:34:21 GMT | |
| connection: close | |
| content-type: text/html; charset=utf-8 | |
| content-length: 955 |
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
| curl -i -L -H"Authorization: Token $token" -o /dev/null -D - https://registry-staging.docker.io/v1/images/8dbd9e392a964056420e5d58ca5cc376ef18e2de93b5cc90e868a1bbc8318c1c/layer | |
| % Total % Received % Xferd Average Speed Time Time Time Current | |
| Dload Upload Total Spent Left Speed | |
| 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 | |
| HTTP/1.1 302 Moved Temporarily | |
| server: gunicorn/18.0 | |
| date: Tue, 27 May 2014 01:14:32 GMT | |
| connection: close | |
| content-type: text/html; charset=utf-8 | |
| content-length: 939 |
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
| $ sudo rm -rf /var/lib/docker/ | |
| $ docker pull fedora:rawhide | |
| Pulling repository fedora | |
| ad57ef8d78d7: Download complete | |
| 511136ea3c5a: Download complete | |
| 73bd853d2ea5: Download complete | |
| $ docker images fedora | |
| REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE | |
| fedora rawhide ad57ef8d78d7 6 weeks ago 359.3 MB | |
| $ docker run fedora:rawhide cat /etc/fedora-release |
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
| 1) Error: | |
| Rinda::TestRingServer#test_make_socket_ipv4_multicast: | |
| Errno::ENOPROTOOPT: Protocol not available - setsockopt(2) | |
| /usr/src/ruby/lib/rinda/ring.rb:141:in `setsockopt' | |
| /usr/src/ruby/lib/rinda/ring.rb:141:in `make_socket' | |
| /usr/src/ruby/test/rinda/test_rinda.rb:611:in `test_make_socket_ipv4_multicast' | |
| 2) Error: | |
| Rinda::TestRingServer#test_make_socket_ipv6_multicast: | |
| Errno::ENOPROTOOPT: Protocol not available - setsockopt(2) |
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
| $ docker login | |
| Username: joffrey | |
| Password: | |
| Email: joffrey@docker.com | |
| 2014/06/09 01:21:47 Error: Unexpected status code [500] : "Docker Service Error" |
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
| $ curl -i https://index.docker.io/v1/users/ -d'{ "username": "joffrey","password": "wwwwwwwwwwwwwww","email": "joffrey@docker.com"}' | |
| HTTP/1.1 500 Internal Server Error | |
| server: nginx/1.2.1 | |
| date: Sun, 08 Jun 2014 23:33:07 GMT | |
| content-type: application/json | |
| transfer-encoding: chunked | |
| connection: close | |
| vary: Cookie | |
| x-frame-options: SAMEORIGIN |
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
| #!/bin/bash | |
| set -e | |
| cd "$(dirname "$BASH_SOURCE")" | |
| versions=( "$@" ) | |
| if [ ${#versions[@]} -eq 0 ]; then | |
| versions=( */ ) | |
| versions=( "${versions[@]%/}" ) | |
| fi |
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
| import logging | |
| import os | |
| import requests | |
| logging.basicConfig(level=logging.DEBUG) | |
| class DownloadSession(requests.Session): | |
| buffer_size = 1024 * 1024 | |
| def __init__(self, user, password): | |
| super(DownloadSession, self).__init__() |
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
| # Redis configuration file example | |
| # Note on units: when memory size is needed, it is possible to specifiy | |
| # it in the usual form of 1k 5GB 4M and so forth: | |
| # | |
| # 1k => 1000 bytes | |
| # 1kb => 1024 bytes | |
| # 1m => 1000000 bytes | |
| # 1mb => 1024*1024 bytes | |
| # 1g => 1000000000 bytes |