I hereby claim:
- I am samuelkarp on github.
- I am samuelkarp (https://keybase.io/samuelkarp) on keybase.
- I have a public key whose fingerprint is 0A4B DF41 8E8D ECB8 7F3E 9E14 AAA3 FE8A 831F C087
To claim this, I am signing this object:
package main | |
import ( | |
"context" | |
"fmt" | |
"os" | |
"syscall" | |
"time" | |
"github.com/containerd/containerd" |
I hereby claim:
To claim this, I am signing this object:
$ go test -v -race -timeout=5s ./daemon/logger/awslogs/... -run TestCollectBatchMaxTotalBytes | |
=== RUN TestCollectBatchMaxTotalBytes | |
================== | |
WARNING: DATA RACE | |
Read by goroutine 14: | |
github.com/docker/docker/daemon/logger/awslogs.TestCollectBatchMaxTotalBytes.func3() | |
/home/local/ANT/skarp/go/src/github.com/docker/docker/daemon/logger/awslogs/cloudwatchlogs_test.go:613 +0x260 | |
Previous write by goroutine 9: | |
github.com/docker/docker/daemon/logger/awslogs.(*logStream).collectBatch() |
#!/bin/bash | |
# Retry a command until it succeeds or we've hit 10 attempts without it | |
# returning 0. | |
function retry_command | |
{ | |
local tries=0 | |
local rc=1 | |
local max_tries=10 | |
local cmd="${@}" |
#!/bin/bash | |
sudo docker pull registry:2 | |
cd /proc/$(pidof docker)/task | |
if [ "$?" -ne 0 ]; then | |
echo >&2 "/proc/$(pidof docker)/task doesn't exist or isn't a directory." | |
exit 1 | |
fi | |
#!/bin/bash | |
get_space_available() { | |
grep 'Data Space Available' <<< "${1}" | \ | |
sed -e 's/.*: //' | \ | |
xargs -I'{}' units '{}' "MB" -t | |
} | |
sudo docker pull ubuntu | |
i=0 |
#!/bin/bash | |
TESTDIR=/opt/test | |
mkdir -p ${TESTDIR} | |
cat >${TESTDIR}/runner.sh << 'EORUNNER' | |
#!/bin/bash | |
curl https://get.docker.com | sh |
#!/bin/bash | |
sudo service docker stop | |
sudo rm -rf /var/lib/docker | |
sudo rm -rf ./bundles/ .gopath | |
AUTO_GOPATH=1 ./hack/make.sh dynbinary || exit 125 | |
sudo cp bundles/latest/dynbinary/docker /usr/bin/docker | |
sudo cp bundles/latest/dynbinary/dockerinit /usr/bin/dockerinit |