Skip to content

Instantly share code, notes, and snippets.

View StefanScherer's full-sized avatar
🌍

Stefan Scherer StefanScherer

🌍
View GitHub Profile
@StefanScherer
StefanScherer / docker-info.txt
Created September 21, 2017 07:44
az-insider lcow
$ docker info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: master-dockerproject-2017-09-20
Storage Driver: windowsfilter (windows) lcow (linux)
LCOW:
Logging Driver: json-file
@StefanScherer
StefanScherer / packer-build.txt
Created August 29, 2017 15:04
packer build hyperv-iso output boxcutter/ubuntu
PS C:\Users\vagrant\ubuntu> packer build -only=hyperv-iso -var-file="ubuntu1604.json" ubuntu.json
2017/08/29 15:02:14 [INFO] Packer version: 1.0.4
2017/08/29 15:02:14 Packer Target OS/Arch: windows amd64
2017/08/29 15:02:14 Built with Go Version: go1.8.3
2017/08/29 15:02:14 Using internal plugin for amazon-ebs
2017/08/29 15:02:14 Using internal plugin for amazon-ebssurrogate
2017/08/29 15:02:14 Using internal plugin for amazon-ebsvolume
2017/08/29 15:02:14 Using internal plugin for file
2017/08/29 15:02:14 Using internal plugin for googlecompute
2017/08/29 15:02:14 Using internal plugin for null
@StefanScherer
StefanScherer / dockerd-lin-01-long.log
Last active June 17, 2017 18:42
docker-for-linux-issue-34
time="2017-06-17T18:04:58.101652606Z" level=info msg="libcontainerd: new containerd process, pid: 4469"
time="2017-06-17T18:04:59.104414657Z" level=warning msg="failed to rename /var/lib/docker/tmp for background deletion: rename /var/lib/docker/tmp /var/lib/docker/tmp-old: no such file or directory. Deleting synchronously"
time="2017-06-17T18:04:59.386633452Z" level=info msg="Graph migration to content-addressability took 0.00 seconds"
time="2017-06-17T18:04:59.387149422Z" level=warning msg="Your kernel does not support swap memory limit"
time="2017-06-17T18:04:59.387336894Z" level=warning msg="Your kernel does not support cgroup rt period"
time="2017-06-17T18:04:59.387485595Z" level=warning msg="Your kernel does not support cgroup rt runtime"
time="2017-06-17T18:04:59.388065950Z" level=info msg="Loading containers: start."
time="2017-06-17T18:05:00.234611334Z" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address"
@StefanScherer
StefanScherer / Dockerfile
Created April 28, 2017 19:55
Build Golang for Windows in a Windows container
FROM golang:1.8-windowsservercore
WORKDIR /compile
RUN git clone https://github.com/golang/go
WORKDIR /compile/go/src
ENV GOROOT_BOOTSTRAP C:/go
ENV CGO_ENABLED 0
RUN cmd /C all.bat
RUN cp ..\bin\*.exe \go\bin
@StefanScherer
StefanScherer / docker.log
Created March 18, 2017 07:33
docker-swarm-init-and-leave
time="2017-03-18T07:30:02.450156939Z" level=debug msg="/usr/local/sbin/iptables, [--wait -I DOCKER-ISOLATION -i docker_gwbridge -o docker0 -j DROP]"
time="2017-03-18T07:30:02.451548164Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t filter -C DOCKER-ISOLATION -i docker0 -o docker_gwbridge -j DROP]"
time="2017-03-18T07:30:02.453053419Z" level=debug msg="Miss notification, l2 mac 02:42:0a:ff:00:03"
time="2017-03-18T07:30:02.453101195Z" level=debug msg="/usr/local/sbin/iptables, [--wait -I DOCKER-ISOLATION -i docker0 -o docker_gwbridge -j DROP]"
time="2017-03-18T07:30:02.458066555Z" level=debug msg="/usr/local/sbin/iptables, [--wait -t filter -L DOCKER-INGRESS]"
time="2017-03-18T07:30:02.459597726Z" level=debug msg="Assigning addresses for endpoint gateway_ingress-sbox's interface on network docker_gwbridge"
time="2017-03-18T07:30:02.459619347Z" level=debug msg="RequestAddress(LocalDefault/172.18.0.0/16, <nil>, map[])"
time="2017-03-18T07:30:02.461382263Z" level=debug msg="Assigning addresses for
$ TF_LOG=TRACE terraform plan
2016/12/12 10:22:08 [INFO] Terraform version: 0.7.13
2016/12/12 10:22:08 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.7.13/bin/terraform", "plan"}
2016/12/12 10:22:08 [DEBUG] Detected home directory from env var: /Users/stefan
2016/12/12 10:22:08 [DEBUG] Detected home directory from env var: /Users/stefan
2016/12/12 10:22:08 [DEBUG] Attempting to open CLI config file: /Users/stefan/.terraformrc
2016/12/12 10:22:08 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2016/12/12 10:22:08 [DEBUG] Detected home directory from env var: /Users/stefan
2016/12/12 10:22:08 [TRACE] Preserving existing state lineage "b7acc487-e37f-4786-9d6b-fe2af5101424"
2016/12/12 10:22:08 [TRACE] Preserving existing state lineage "b7acc487-e37f-4786-9d6b-fe2af5101424"
GET https://registry-1.docker.io/v2/microsoft/nanoserver/manifests/latest HTTP/1.1
Host: registry-1.docker.io
User-Agent: docker/1.12.2-cs2-ws-beta-rc1 go/go1.7.1 git-commit/62d9ff9 os/windows arch/amd64 UpstreamClient(Docker-Client/1.12.2-cs2-ws-beta-rc1 \(windows\))
Accept: application/json
Accept: application/vnd.docker.distribution.manifest.v2+json
Accept: application/vnd.docker.distribution.manifest.list.v2+json
Accept: application/vnd.docker.distribution.manifest.v1+prettyjws
Authorization: Bearer xxxxx
Accept-Encoding: gzip
Connection: close
@StefanScherer
StefanScherer / docker-swarm-mode-visualizer.md
Created August 11, 2016 21:06
Docker swarm-mode with visualizer

Docker SwarmKit with visualizer

Create some nodes with Docker 1.12.0-rc3

URL=https://github.com/boot2docker/boot2docker/releases/download/v1.12.0-rc3/boot2docker.iso
docker-machine create -d virtualbox --virtualbox-boot2docker-url $URL sw01
docker-machine create -d virtualbox --virtualbox-boot2docker-url $URL sw02
docker-machine create -d virtualbox --virtualbox-boot2docker-url $URL sw03
packer build --only=hyperv-iso --var iso_url=./iso/win2016tp5.iso --var hyperv_switchname=ext windows_2016_docker.json