Skip to content

Instantly share code, notes, and snippets.

View briantd's full-sized avatar

Brian Donaldson briantd

View GitHub Profile
@briantd
briantd / rexray-client.log.sh
Last active May 16, 2017 19:21
Troubleshooting REX-Ray: server log produced by attempting to mount an azureUD volume (Missing ID error)
swarm-manager000000:~/rexray_0.9.1$ docker run -it -v myvolume1:/mv busybox /bin/bash
docker: Error response from daemon: error while mounting volume '/var/lib/docker/plugins/8e341ab829ce6d2ae3d2509d23736413be92375a4576af65d66ade1584115f38/rootfs': VolumeDriver.Mount: {"Error":"missing instance ID"}.
@briantd
briantd / rexray-client.log.sh
Created May 16, 2017 19:20
Troubleshooting REX-Ray: server log produced by attempting to mount an azureUD volume using rexray service (failed to get virtual machine)
swarm-manager000000:/home/docker# rexray volume mount myvolume2
INFO[0000] updated log level logLevel=debug
DEBU[0000] os.args time=1494962294201 val=[rexray volume mount myvolume2]
DEBU[0000] activating libStorage cmd=mount time=1494962294201
DEBU[0000] parseSafeHost - no change postParse=unix:///var/run/libstorage/930586076.sock preParse=unix:///var/run/libstorage/930586076.sock time=1494962294206
DEBU[0000] read spec file host=unix:///var/run/libstorage/930586076.sock path=/var/run/rexray/rexray.spec time=1494962294206
DEBU[0000] is local unix server active sock=/var/run/libstorage/930586076.sock time=1494962294207
DEBU[0000] set host in context host=unix:///var/run/libstorage/930586076.sock time=1494962294207
DEBU[0000] set host in config host=unix:///var/run/libstorage/930586076.sock time=1494962
@briantd
briantd / rexray-client-volume-ls.log.sh
Last active May 17, 2017 00:25
Troubleshooting REX-Ray: server log produced by attempting to mount an azureUD volume using service started in foreground
swarm-manager000006:~$ sudo rexray volume ls
INFO[0000] updated log level logLevel=debug
DEBU[0000] os.args time=1494977315526 val=[rexray volume ls]
DEBU[0000] activating libStorage cmd=ls time=1494977315526
DEBU[0000] parseSafeHost - no change postParse=unix:///var/run/libstorage/406989259.sock preParse=unix:///var/run/libstorage/406989259.sock time=1494977315529
DEBU[0000] read spec file host=unix:///var/run/libstorage/406989259.sock path=/var/run/rexray/rexray.spec time=1494977315529
DEBU[0000] is local unix server active sock=/var/run/libstorage/406989259.sock time=1494977315529
DEBU[0000] set host in context host=unix:///var/run/libstorage/406989259.sock time=1494977315530
DEBU[0000] set host in config host=unix:///var/run/libstorage/406989259.sock time=1494977315530
DEBU[0000] not starting embe
@briantd
briantd / setup.sh
Created May 16, 2017 22:55
REX-Ray: Setting up rexray service on Moby
#
# Run as root to protect against the purged packages bug below
#
# Update package manager
apk update
# Add missing package -- this will trigger some package removals (https://github.com/docker/editions/issues/675)
apk add alpine-sdk > apk_output.log
@briantd
briantd / setup.sh
Created May 16, 2017 22:55
REX-Ray: Setting up rexray service on Moby
#
# Run as root to protect against the purged packages bug below
#
# Update package manager
apk update
# Add missing package -- this will trigger some package removals (https://github.com/docker/editions/issues/675)
apk add alpine-sdk > apk_output.log
@briantd
briantd / setup.sh
Created May 16, 2017 22:55
REX-Ray: Setting up rexray service on Moby
#
# Run as root to protect against the purged packages bug below
#
# Update package manager
apk update
# Add missing package -- this will trigger some package removals (https://github.com/docker/editions/issues/675)
apk add alpine-sdk > apk_output.log
@briantd
briantd / abbrv_centos_install_docker.sh
Last active November 26, 2019 20:21
Scripts to spin up VMs running RHEL, Centos, and Ubuntu on Azure; Setup Docker; and install REX-Ray
sudo yum remove docker \
docker-common \
container-selinux \
docker-selinux \
docker-engine
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
@briantd
briantd / docker-compose.yml
Last active August 31, 2017 23:45
JenkinsWorld2017 Docker + Jenkins
version: "3.1"
# See https://docs.docker.com/compose/compose-file/
#
# Purpose -- stackfile to spin up a jenkins stack (master + workers)
# Stack needs volumes and secrets to be already defined in the Swarm.
# (c) Docker 2017
#
#