This file contains hidden or 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
root@791f93266eff:~# docker -d | |
2015/01/14 05:46:09 docker daemon: 1.1.2 d84a070; execdriver: native; graphdriver: | |
[76676278] +job serveapi(unix:///var/run/docker.sock) | |
[76676278] +job initserver() | |
[76676278.initserver()] Creating server | |
[error] attach_loopback.go:42 There are no more loopback devices available. | |
loopback mounting failed | |
[76676278] -job initserver() = ERR (1) | |
2015/01/14 05:46:09 loopback mounting failed |
This file contains hidden or 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
$ docker run --help | |
Usage: docker run [OPTIONS] IMAGE [COMMAND] [ARG...] | |
Run a command in a new container | |
-a, --attach=[] Attach to STDIN, STDOUT or STDERR. | |
--add-host=[] Add a custom host-to-IP mapping (host:ip) | |
-c, --cpu-shares=0 CPU shares (relative weight) | |
--cap-add=[] Add Linux capabilities |
This file contains hidden or 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
/var/log# cat docker.log | |
2015/01/05 06:18:00 docker daemon: 1.3.3 d344625; execdriver: native; graphdriver: | |
[526f5403] +job serveapi(unix:///var/run/docker.sock) | |
[526f5403] +job init_networkdriver() | |
[info] Listening for HTTP on unix (/var/run/docker.sock) | |
[526f5403] -job init_networkdriver() = OK (0) | |
2015/01/05 06:18:00 WARNING: Your kernel does not support cgroup swap limit. | |
2015/01/05 06:18:00 Error loading docker apparmor profile: fork/exec /sbin/apparmor_parser: no such file or directory () | |
2015/01/05 06:21:08 docker daemon: 1.3.3 d344625; execdriver: native; graphdriver: | |
[d82e442a] +job serveapi(tcp://127.0.0.1:4243, unix:///var/run/docker.sock) |
This file contains hidden or 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
# docker -d | |
2015/01/05 06:50:58 docker daemon: 1.3.3 d344625; execdriver: native; graphdriver: | |
[b2f522bb] +job serveapi(unix:///var/run/docker.sock) | |
[b2f522bb] +job init_networkdriver() | |
[info] Listening for HTTP on unix (/var/run/docker.sock) | |
[b2f522bb] -job init_networkdriver() = OK (0) | |
2015/01/05 06:50:58 WARNING: Your kernel does not support cgroup swap limit. | |
[info] Loading containers: | |
[info] : done. | |
[b2f522bb] +job acceptconnections() |
This file contains hidden or 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
# docker -d | |
2015/01/05 06:47:24 docker daemon: 1.3.3 d344625; execdriver: native; graphdriver: | |
[ed94efa8] +job serveapi(unix:///var/run/docker.sock) | |
2015/01/05 06:47:24 pid file found, ensure docker is not running or delete /var/run/docker.pid |
This file contains hidden or 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
# apt-get install apparmor | |
Reading package lists... Done | |
Building dependency tree | |
Reading state information... Done | |
The following extra packages will be installed: | |
libapparmor-perl libapparmor1 | |
Suggested packages: | |
apparmor-profiles apparmor-docs apparmor-utils | |
The following NEW packages will be installed: | |
apparmor libapparmor-perl libapparmor1 |
This file contains hidden or 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 "fmt" | |
type myInt int | |
const unTypedC = 20 | |
const typedC int = 30 | |
func main() { |
This file contains hidden or 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 "log" | |
func alterValue(val interface{}) { | |
INCR := 10 | |
switch i := val.(type) { | |
case nil: | |
log.Println("Nil value") |
This file contains hidden or 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 "log" | |
type EventLogger interface { | |
Log() int | |
} | |
type EventA struct { | |
Id int |
This file contains hidden or 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 ( | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"os" | |
"sync" | |
) |