Skip to content

Instantly share code, notes, and snippets.

# docker build git://github.com/dotcloud/hipache
2013/07/25 17:31:17 POST /v1.3/build?remote=git%3A%2F%2Fgithub.com%2Fdotcloud%2Fhipache&t=
Step 1 : FROM ubuntu:12.04
---> 8dbd9e392a96
Step 2 : RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
---> Using cache
---> dca29a99b865
Step 3 : RUN apt-get -y update
---> Using cache
---> e161f7e2ab6d
@shin-
shin- / shortlist
Last active December 21, 2015 23:19
shortlist
docker#1713
docker#1714
@shin-
shin- / gist:6430711
Last active December 22, 2015 06:28
func flatten(slc [][]*ImgData) []*ImgData {
result := []*ImgData{}
for _, x := range slc {
result = append(result, x...)
}
return result
}
docker pull busybox
docker tag busybox $USER/kimchi tag1
docker run $USER/kimchi:tag1 mkdir /imperishable_night
docker commit `docker ps -a -q | head -n 1` $USER/kimchi tag2
docker run $USER/kimchi:tag2 mkdir /subterranean_animism
docker commit `docker ps -a -q | head -n 1` $USER/kimchi tag3
1 Apr 18:42:11 - (worker #26859) Cache: Proxying: my.registry.io -> 127.0.0.1:5000
1 Apr 18:42:44 - (worker #26858) MemoryMonitor: Memory usage is OK (100MB)
1 Apr 18:42:44 - (worker #26859) MemoryMonitor: Memory limit exceeded (290MB), exiting...
1 Apr 18:42:44 - (worker #26859) MemoryMonitor: Waiting for 2 server handlers...
1 Apr 18:43:14 - (worker #26859) MemoryMonitor: 1 server handler is stuck, force exiting...
1 Apr 18:43:14 - (worker #26859) MemoryMonitor: === Exceeded memory report ===
1 Apr 18:43:14 - (worker #26859) MemoryMonitor: Gracefully exited: false
1 Apr 18:43:14 - (worker #26859) MemoryMonitor: Uptime: 12 minutes
1 Apr 18:43:14 - (worker #26859) MemoryMonitor: Requests: 8
1 Apr 18:43:14 - (worker #26859) MemoryMonitor: Connections: 9
# docker run -i -t cirros /bin/sh
WARNING: Local (127.0.0.1) DNS resolver found in resolv.conf and containers can't use it. Using default external servers : [8.8.8.8 8.8.4.4]
/ # openssl
/bin/sh: openssl: not found
/ # find / -name "openssl"
/ #
[debug] server.go:936 Calling POST /images/{name:.*}/tag
2014/04/09 19:17:50 POST /v1.6/images/scratch/tag
[/var/lib/docker|8af4e1a1] +job tag(scratch, , )
Repository name can't be empty
[/var/lib/docker|8af4e1a1] -job tag(scratch, , ) = ERR (1)
[error] server.go:962 Error: Repository name can't be empty
[error] server.go:89 HTTP Error: statusCode=500 Repository name can't be empty
root@shin-vb:~/dockerfiles/small# docker build -t small .
Uploading context 2.56 kB
Uploading context
Step 0 : FROM ubuntu:13.10
---> 25593492b938
Step 1 : RUN dd if=/dev/urandom of=/huge.bin bs=2M count=5
---> Running in cf8384936fb2
5+0 records in
5+0 records out
10485760 bytes (10 MB) copied, 0.886656 s, 11.8 MB/s
# docker images ubuntu
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
ubuntu 13.10 25593492b938 6 days ago 192.7 MB
ubuntu 12.10 f697cdc2ef19 6 days ago 172.8 MB
ubuntu 12.04 c0fe63f9a4c1 6 days ago 231.1 MB
2014-05-19 15:39:20 [160] [INFO] Starting gunicorn 18.0
2014-05-19 15:39:20 [160] [INFO] Listening at: http://0.0.0.0:42800 (160)
2014-05-19 15:39:20 [160] [INFO] Using worker: gevent
2014-05-19 15:39:20 [222] [INFO] Booting worker with pid: 222
2014-05-19 15:39:20 [223] [INFO] Booting worker with pid: 223
2014-05-19 15:39:20 [225] [INFO] Booting worker with pid: 225
2014-05-19 15:39:20 [226] [INFO] Booting worker with pid: 226
2014-05-19 15:39:20 [228] [INFO] Booting worker with pid: 228
2014-05-19 15:39:20 [227] [INFO] Booting worker with pid: 227
2014-05-19 15:39:20 [233] [INFO] Booting worker with pid: 233