This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"log" | |
"os" | |
"os/exec" | |
"github.com/docker/containerd/osutils" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "github.com/opencontainers/specs" | |
func main() { | |
device := specs.ThrottleDevice{} | |
device.Major = 0 | |
device.Minor = 0 | |
var rate uint64 | |
rate = 292929 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dontfearthereaper | |
import "syscall" | |
// PR_SET_CHILD_SUBREAPER | |
const prSetSubreaper = 0x36 | |
func init() { | |
if _, _, err := syscall.RawSyscall(syscall.SYS_PRCTL, prSetSubreaper, 0, 0); err != 0 { | |
panic(err) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.1.1", | |
"platform": { | |
"os": "linux", | |
"arch": "amd64" | |
}, | |
"process": { | |
"terminal": true, | |
"user": "daemon", | |
"args": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"no_pivot_root": false, | |
"parent_death_signal": 0, | |
"pivot_dir": "", | |
"rootfs": "/home/michael/libcontainer", | |
"readonlyfs": false, | |
"privatefs": false, | |
"mounts": [ | |
{ | |
"source": "proc", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3915 execve("/usr/local/bin/nsinit", ["nsinit", "checkpoint", "--image-path", "/tmp/checkpoint"], [/* 17 vars */]) = 0 | |
3915 brk(0) = 0xffe000 | |
3915 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) | |
3915 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f77c72a5000 | |
3915 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) | |
3915 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 | |
3915 fstat(3, {st_mode=S_IFREG|0644, st_size=100254, ...}) = 0 | |
3915 mmap(NULL, 100254, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f77c728c000 | |
3915 close(3) = 0 | |
3915 access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"log" | |
"os" | |
"path/filepath" | |
"syscall" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; <<>> DiG 9.9.5-9-Ubuntu <<>> dockerbench.com | |
;; global options: +cmd | |
;; Got answer: | |
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47998 | |
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 | |
;; OPT PSEUDOSECTION: | |
; EDNS: version: 0, flags:; udp: 4096 | |
;; QUESTION SECTION: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Reading package lists... | |
Building dependency tree... | |
Reading state information... | |
Some packages could not be installed. This may mean that you have | |
requested an impossible situation or if you are using the unstable | |
distribution that some required packages have not yet been created | |
or been moved out of Incoming. | |
The following information may help to resolve the situation: | |
The following packages have unmet dependencies: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
type Config struct { | |
Common string | |
DriverOpts interface{} | |
} | |
func main() { | |
var provider libmachine.Provider | |
switch driver { |