Skip to content

Instantly share code, notes, and snippets.

View kolyshkin's full-sized avatar

Kir Kolyshkin kolyshkin

  • Red Hat
  • Seattle, WA, USA
  • 21:26 (UTC -07:00)
  • X @kolyshkin
View GitHub Profile
@kolyshkin
kolyshkin / gist:bd25e9de97954b330d8a
Created August 12, 2015 06:36
How to run go pprof on Docker daemon
Enable port 8080 through the firewall:
firewall-cmd --add-port=8080/tcp
Run socat to make docker sock available via tcp port (note the IP to listen at)
socat -d -d TCP-LISTEN:8080,fork,bind=192.168.122.214 UNIX:/var/run/docker.sock
Run pprof on your client:
go tool pprof http://192.168.122.214:8080/debug/pprof/profile
Fetching profile from http://192.168.122.214:8080/debug/pprof/profile
Please wait... (30s)
@kolyshkin
kolyshkin / gist:5d48beda72cffba440e6
Created August 11, 2015 23:53
Docker 1.8pre on btrfs with RHEL7 kernel
[root@tpad-rh7 btrt]# docker build .
Sending build context to Docker daemon 2.048 kB
Sending build context to Docker daemon
Step 0 : FROM ubuntu:14.04
---> 8251da35e7a7
Step 1 : RUN echo deb http://ppa.launchpad.net/zfs-native/stable/ubuntu trusty main > /etc/apt/sources.list.d/zfs.list
---> Running in 9abf6fdbe269
---> ccd977ffd4f5
Removing intermediate container 9abf6fdbe269
Step 2 : RUN ls -l /etc/apt/sources.list.d/zfs.list; cat /etc/apt/sources.list.d/zfs.list