Skip to content

Instantly share code, notes, and snippets.

View tianon's full-sized avatar
♥️
TIANON

Tianon Gravi tianon

♥️
TIANON
View GitHub Profile
diff --git a/pkg/cgroups/cgroups.go b/pkg/cgroups/cgroups.go
index b40e1a3..3df82c2 100644
--- a/pkg/cgroups/cgroups.go
+++ b/pkg/cgroups/cgroups.go
@@ -62,7 +62,15 @@ func GetInitCgroupDir(subsystem string) (string, error) {
return parseCgroupFile(subsystem, f)
}
-func (c *Cgroup) Path(root, subsystem string) (string, error) {
+func (c *Cgroup) Path(subsystem string) (string, error) {
diff --git a/DCO.md b/DCO.md
index c9cedee..5bfe198 100644
--- a/DCO.md
+++ b/DCO.md
@@ -1,11 +1,11 @@
-Docker Developer Certificate of Origin 1.1
+Developer's Certificate of Origin 1.1
-By making a contribution to the Docker Project ("Project"), I represent and warrant that:
+By making a contribution to this project, I certify that:
@tianon
tianon / Dockerfile
Last active August 29, 2015 14:00
Debian Potato Docker Base Image
FROM scratch
ADD rootfs.tar.xz /
CMD ["/bin/bash"]
@tianon
tianon / sed-xdg-user-dirs.sh
Last active August 29, 2015 14:02
fix stupid user-dirs.defaults
sudo sed -ri 's/=.*/\L&/g; s/public$/public-share/; s/documents/docs/g; s/pictures/pics/g' /etc/xdg/user-dirs.defaults
xdg-user-dirs-update --force
@tianon
tianon / output.txt
Created July 1, 2014 22:21
"docker pull" from cron
+ docker pull debian
Pulling repository debian
@tianon
tianon / Dockerfile
Last active August 29, 2015 14:04
strange "apt-get install" behavior stumping me
FROM debian:sid
RUN apt-get update && apt-get install -y ca-certificates --no-install-recommends
package main
import (
"flag"
"fmt"
"io"
"io/ioutil"
"log"
"os"
"strings"
#!/bin/bash
set -e
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
mkdir -p busybox
curl -sSL 'https://github.com/jpetazzo/docker-busybox/raw/buildroot-2013.08.1/rootfs.tar' | tar -xC busybox
diff --git a/debian/watch b/debian/watch
index 9ae51be..49e969a 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,2 +1,2 @@
version=3
-http://code.google.com/p/go/wiki/Downloads .*/go([0-9.]*)\.src\.tar\.gz
+http://golang.org/dl/ .*/go([0-9.]*)\.src\.tar\.gz
$ docker images golang
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
golang 1.3-onbuild 2926b85ca457 2 minutes ago 413.9 MB
golang 1.3-cross 14c1c7a7bd9c 5 minutes ago 1.812 GB
golang 1.3 0a615b2ecb6f 14 minutes ago 413.9 MB