Skip to content

Instantly share code, notes, and snippets.

View aaronlehmann's full-sized avatar

Aaron Lehmann aaronlehmann

View GitHub Profile
@aaronlehmann
aaronlehmann / main.go
Created August 11, 2021 00:31
Symlink cache issue repro (take 2)
package main
import (
"context"
"fmt"
"os"
_ "github.com/moby/buildkit/client/connhelper/dockercontainer"
"github.com/moby/buildkit/client"
@aaronlehmann
aaronlehmann / go.mod
Created August 10, 2021 18:57
Buildkit cache issue repro
module github.com/aaronlehmann/bkcacherepro
go 1.16
require (
github.com/moby/buildkit v0.9.0
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c
)
package main
import (
"context"
"fmt"
"os"
"path/filepath"
_ "github.com/moby/buildkit/client/connhelper/dockercontainer"
ERRO[0109] failed to shut down cluster node: context deadline exceeded
goroutine 1 [running]:
github.com/docker/docker/pkg/signal.DumpStacks(0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/src/github.com/docker/docker/pkg/signal/trap.go:82 +0xd9
github.com/docker/docker/daemon/cluster.(*Cluster).Cleanup(0xc42023c5a0)
/go/src/github.com/docker/docker/daemon/cluster/cluster.go:380 +0x1c0
main.(*DaemonCli).start(0xc420106120, 0xc420052000, 0x0, 0x0)
/go/src/github.com/docker/docker/cmd/dockerd/daemon.go:308 +0x1a59
main.runDaemon(0xc420052000, 0xc420468120, 0x0)
/go/src/github.com/docker/docker/cmd/dockerd/docker.go:78 +0x76
@aaronlehmann
aaronlehmann / mappanic.go
Created June 8, 2017 21:16
Concurrent map panic can't be recovered
package main
var (
m = map[int]string{}
)
func readMap() {
defer func() {
recover()
}()
time="2017-04-17T14:16:06.886265000Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/d167bfd8fc6d9.sock)"
time="2017-04-17T14:16:06.889233000Z" level=debug msg="Using default logging driver json-file"
time="2017-04-17T14:16:06.889371000Z" level=debug msg="Golang's threads limit set to 57960"
time="2017-04-17T14:16:06.889960000Z" level=debug msg="[graphdriver] trying provided driver: vfs"
time="2017-04-17T14:16:06.890107000Z" level=debug msg="Using graph driver vfs"
time="2017-04-17T14:16:06.890293000Z" level=debug msg="Max Concurrent Downloads: 3"
time="2017-04-17T14:16:06.890308000Z" level=debug msg="Max Concurrent Uploads: 5"
time="2017-04-17T14:16:06.903142000Z" level=info msg="Graph migration to content-addressability took 0.00 seconds"
time="2017-04-17T14:16:06.903388000Z" level=warning msg="Your kernel does not support swap memory limit"
time="2017-04-17T14:16:06.903447000Z" level=warning msg="Your kernel does not support cgroup rt period"
@aaronlehmann
aaronlehmann / gzip-inconsistency.go
Last active August 29, 2015 14:27
Inconsistent compressed output between tarsum and direct gzip Writer
package main
import (
"compress/gzip"
"io"
"os"
"github.com/docker/docker/pkg/tarsum"
)