Skip to content

Instantly share code, notes, and snippets.

$ 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
$ 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
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
$ 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
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)
$ docker login
Username: joffrey
Password:
Email: joffrey@docker.com
2014/06/09 01:21:47 Error: Unexpected status code [500] : "Docker Service Error"
$ 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
#!/bin/bash
set -e
cd "$(dirname "$BASH_SOURCE")"
versions=( "$@" )
if [ ${#versions[@]} -eq 0 ]; then
versions=( */ )
versions=( "${versions[@]%/}" )
fi
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__()
@shin-
shin- / gist:1c12a0da82de621d69dc
Created July 29, 2014 14:09
cache redis.conf
# 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