Skip to content

Instantly share code, notes, and snippets.

@runcom
runcom / master.vim
Last active August 29, 2015 14:00 — forked from gmccreight/master.vim
" copy all this into a vim buffer, save it, then...
" source the file by typing :so %
" Now the vim buffer acts like a specialized application for mastering vim
" There are two queues, Study and Known. Depending how confident you feel
" about the item you are currently learning, you can move it down several
" positions, all the way to the end of the Study queue, or to the Known
" queue.
" type ,, (that's comma comma)
#!/usr/bin/env escript
% -*- erlang-indent-level: 4;indent-tabs-mode: nil -*-
% ex: ts=4 sw=4 et
-export([main/1]).
create_xml_snippet(L) ->
PlaceHolders = [
"@ind_clifor@",
"@cod_clifor@",
"@ind_gest_ivacassa@",
// Run executes the job and blocks until the job completes.
// If the job fails it returns an error
func (job *Job) Run() (err error) {
if job.Eng.IsShutdown() && !job.GetenvBool("overrideShutdown") {
return fmt.Errorf("engine is shutdown")
}
// FIXME: this is a temporary workaround to avoid Engine.Shutdown
// waiting 5 seconds for server/api.ServeApi to complete (which it never will)
// everytime the daemon is cleanly restarted.
// The permanent fix is to implement Job.Stop and Job.OnStop so that
==================
WARNING: DATA RACE
Write by goroutine 82:
github.com/docker/docker/registry.(*httpsRequestModifier).ModifyRequest()
/go/src/github.com/docker/docker/registry/registry.go:129 +0x192c
github.com/docker/docker/pkg/transport.(*transport).RoundTrip()
/go/src/github.com/docker/docker/pkg/transport/transport.go:55 +0x185
github.com/docker/docker/pkg/transport.(*transport).RoundTrip()
/go/src/github.com/docker/docker/pkg/transport/transport.go:61 +0x2e0
github.com/docker/docker/registry.(*authTransport).RoundTrip()
@runcom
runcom / gist:c8be5b347dfc1deddba3
Created May 24, 2015 20:31
race stats native driver 1
==================
WARNING: DATA RACE
Write by goroutine 32:
runtime.mapassign1()
/usr/local/go/src/runtime/hashmap.go:383 +0x0
github.com/docker/docker/daemon/execdriver/native.(*driver).Run()
/go/src/github.com/docker/docker/daemon/execdriver/native/driver.go:142 +0x7cb
github.com/docker/docker/daemon.(*Daemon).Run()
/go/src/github.com/docker/docker/daemon/daemon.go:1033 +0xe1
github.com/docker/docker/daemon.(*containerMonitor).Start()
@runcom
runcom / gist:5791bd0befbe8f0c7d3b
Created May 24, 2015 20:32
race stats native driver 2
==================
WARNING: DATA RACE
Write by goroutine 96:
runtime.mapdelete()
/usr/local/go/src/runtime/hashmap.go:495 +0x0
github.com/docker/libcontainer/cgroups.RemovePaths()
/go/src/github.com/docker/docker/vendor/src/github.com/docker/libcontainer/cgroups/utils.go:230 +0x1f6
github.com/docker/libcontainer/cgroups/fs.(*Manager).Destroy()
/go/src/github.com/docker/docker/vendor/src/github.com/docker/libcontainer/cgroups/fs/apply_raw.go:127 +0x5e
github.com/docker/libcontainer.(*linuxContainer).Destroy()
(00.000042) Added /etc/resolv.conf:/etc/resolv.conf ext mount mapping
(00.000064) Added /etc/hostname:/etc/hostname ext mount mapping
(00.000066) Added /etc/hosts:/etc/hosts ext mount mapping
(00.000069) ========================================
(00.000071) Dumping processes (pid: 116)
(00.000072) ========================================
(00.000118) Found anon-shmem device at 5
(00.000124) Reset 135's dirty tracking
(00.000157) ... done
(00.000178) Dirty track supported on kernel
server {
listen 80;
server_name _;
default_type text/html;
location = /ping.php {
return 200;
}
}
server {
diff --git a/hack/make/validate-lint b/hack/make/validate-lint
index 870b6c0..0683d6a 100644
--- a/hack/make/validate-lint
+++ b/hack/make/validate-lint
@@ -30,7 +30,7 @@ packages=(
)
errors=()
-for p in "$packages"; do
+for p in "${packages[@]}"; do
diff --git a/api/client/info.go b/api/client/info.go
index 3dba752..b508f93 100644
--- a/api/client/info.go
+++ b/api/client/info.go
@@ -46,6 +46,7 @@ func (cli *DockerCli) CmdInfo(args ...string) error {
ioutils.FprintfIfNotEmpty(cli.out, "Operating System: %s\n", info.OperatingSystem)
ioutils.FprintfIfNotEmpty(cli.out, "OS: %s\n", info.OS)
ioutils.FprintfIfNotEmpty(cli.out, "Architecture: %s\n", info.Architecture)
+ ioutils.FprintfIfNotEmpty(cli.out, "OSVariant: %s\n", info.OSVariant)
fmt.Fprintf(cli.out, "CPUs: %d\n", info.NCPU)