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 swarm leave --force;docker rm -f node1;docker service rm $(docker service ls -q))&>/dev/null | |
| bold=$(tput bold) | |
| normal=$(tput sgr0) | |
| function doit() { | |
| set +e | |
| echo -n $bold"$ " | |
| if [[ "$SKIP" == "" ]]; then read -s -n 1 ; fi | |
| echo -n $*$normal" " |
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 rm -f manager node1 node2;docker network rm mynet;rm -f cmds)&>/dev/null | |
| bold=$(tput bold) | |
| normal=$(tput sgr0) | |
| function doit() { | |
| set +e | |
| echo -n $bold"$ " | |
| if [[ "$SKIP" == "" ]]; then read -s -n 1 ; fi | |
| echo -n $*$normal" " |
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 rm -f manager node1 node2;docker network rm mynet;rm -f cmds)&>/dev/null | |
| bold=$(tput bold) | |
| normal=$(tput sgr0) | |
| function doit() { | |
| set +e | |
| echo -n $bold"$ " | |
| if [[ "$SKIP" == "" ]]; then read -s -n 1 ; fi | |
| echo -n $*$normal" " |
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 -H 172.20.0.2:2375 service create --name foo --network swarmnet ibmdojo/mini | |
| 25w9xluukxsnxo9ie38s8a4ho | |
| $ docker -H 172.20.0.2:2375 service create --name foo1 ibmdojo/mini | |
| 65jv5y7ai4kx3qdf0p3qlzexv | |
| $ docker -H 172.20.0.2:2375 service inspect foo foo1 | |
| [ | |
| { | |
| "ID": "25w9xluukxsnxo9ie38s8a4ho", |
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
| #!/bin/bash | |
| ( | |
| kubectl delete ServiceBinding mongodb-instance1-binding1 | |
| kubectl delete ServiceInstance mongodb-instance1 | |
| kubectl delete ServiceBroker mongodb-sb | |
| kubectl delete thirdpartyresource service-broker.cncf.org | |
| kubectl delete thirdpartyresource service-instance.cncf1.org | |
| kubectl delete thirdpartyresource service-binding.cncf2.org | |
| ) > /dev/null 2>&1 |
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
| #!/bin/bash | |
| ( | |
| # Clean-up from previous run | |
| kubectl delete rc app | |
| kubectl delete secret creds | |
| kubectl delete ServiceBroker mongodb-sb | |
| kubectl delete ServiceInstance mongodb-instance1 | |
| kubectl delete ServiceBinding mongodb-instance1-binding1 | |
| kubectl delete thirdpartyresource service-broker.cncf.org |
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
| Simple case - no hooks, etc: | |
| runc create --name=test --process=myapp | |
| or if you need hooks, etc... : | |
| runc create --name=test | |
| # process is just "sleep" | |
| # creates a new container will all new NSs | |
| # do pre-start hooks here |
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 client | |
| import ( | |
| "bytes" | |
| "fmt" | |
| "io/ioutil" | |
| "net/http" | |
| "strings" | |
| "testing" |
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
| ---> Making bundle: dynbinary (in bundles/1.10.0-dev/dynbinary) | |
| Created binary: bundles/1.10.0-dev/dynbinary/dockerinit-1.10.0-dev | |
| Building: bundles/1.10.0-dev/dynbinary/docker-1.10.0-dev | |
| Created binary: bundles/1.10.0-dev/dynbinary/docker-1.10.0-dev | |
| ---> Making bundle: test-integration-cli (in bundles/1.10.0-dev/test-integration-cli) | |
| ---> Making bundle: .integration-daemon-start (in bundles/1.10.0-dev/test-integration-cli) | |
| +++ /etc/init.d/apparmor start | |
| * Starting AppArmor profiles | |
| Skipping profile in /etc/apparmor.d/disable: usr.sbin.rsyslogd |
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
| # ./runc exec --help | |
| panic: runtime error: invalid memory address or nil pointer dereference | |
| [signal 0xb code=0x1 addr=0x0 pc=0x4a561d] | |
| goroutine 1 [running]: | |
| github.com/codegangsta/cli.(*StringSlice).String(0x0, 0x0, 0x0) | |
| /root/src/github.com/opencontainers/runc2/Godeps/_workspace/src/github.com/codegangsta/cli/flag.go:110 +0x11d | |
| flag.(*FlagSet).Var(0xc8200ba0c0, 0x7feb60aa6408, 0x0, 0x7cba98, 0x3, 0x821220, 0x19) | |
| /usr/local/go/src/flag/flag.go:766 +0x6e | |
| github.com/codegangsta/cli.StringSliceFlag.Apply.func1(0x7cba98, 0x3) |