- expose + link で link オプションをつけて起動したクライアントで環境変数で拾える
- 以下のテストでは mysql が動くイメージをサーバ/クライアント両方で利用しているが、特に意味はない
# docker run -d -expose 3306 -name mysql-server mysql
10eaabc4b538f9e08a190ffc0545c2b76be69f7723acc3528d7ebec120fe51a2
# | |
# Check for requirements: | |
# o Linux >= 2.6.20 with I/O accounting and VM event counters | |
# | |
ioaccounting = os.path.exists('/proc/self/io') | |
try: | |
from iotop.vmstat import VmStat | |
vmstat_f = VmStat() |
#!/bin/bash | |
# vi: set ts=4 sw=4 sts=0 et: | |
# [使いやすいシェルスクリプトを書く | SOTA](http://deeeet.com/writing/2014/05/18/shell-template/) | |
# [Zsh - シェルスクリプトのオプション設計ガイドライン - Qiita](http://qiita.com/mollifier/items/95a294f95f5977b9d663) | |
PROG=$(basename ${0}) | |
usage() { | |
cat <<EOF | |
${PROG} is a tool for %FIXME% |
#!/usr/bin/env python | |
# -*- coding: utf-8; -*- | |
# github に上げるテキストのタイトルを抜き出して目次を作る | |
# https://github.com/sonots/growthforecast-tuning/blob/master/toc.rb | |
# vi: set ts=4 sw=4 sts=0 et: | |
import os,sys,urllib | |
filename = sys.argv[1] | |
flag = 0 |
#!/usr/bin/python | |
# vi: set ts=4 sw=4 sts=0 et: | |
import sys,time,subprocess | |
from datetime import datetime | |
AIRPORT='/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport' | |
AIRPORT_OPT=('-I') | |
cmdline=(AIRPORT,AIRPORT_OPT) | |
subproc_args = {'shell': False, |
# bash の tcp 通信機能を使います | |
# 参考: http://qiita.com/k_ui/items/a01fdcfa8ac6729e7870 | |
exec 3<> /dev/tcp/file.mackerel.io/80 | |
echo -e "GET /agent/deb/mackerel-agent_latest.all.deb HTTP/1.0\nHost:file.mackerel.io\n\n" >&3 | |
cat <&3 >mackerel-agent_latest.all.deb | |
# header が付いているので除去 | |
# 参考: http://stackoverflow.com/questions/20179623/bash-remove-headers-from-http-response | |
sed -i '1,/^\r\{0,1\}$/d' mackerel-agent_latest.all.deb |
治った模様
$ for i in $(dig @d0.org.afilias-nst.org ftp.jp.debian.org ns | awk '/^debian.org/ {print $5}'); do echo "== ${i} ==";dig +short @${i} ftp.jp.debian.org;done
== dns1.easydns.com. ==
cdn.debian.or.jp.
== sec2.rcode0.net. ==
cdn.debian.or.jp.
Docker Storage Drivers を読んでのメモです。
With O_WRONLY or O_RDWR - write access look it up in the top branch;