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
NC='\e[0m' # Text Reset | |
IYellow='\e[0;93m' # Yellow | |
echo -e "${IYellow}############################ ip netns exec \$(ip netns) ip a ###############################${NC}" | |
for ns in $(sudo ip netns); | |
do echo -e "${IYellow}Namespace: $ns ${NC}" | |
sudo ip netns exec $ns ip a | grep --color=never "BROAD\|ether\|LOOP\|global"; | |
done | |
echo -e "${IYellow}###################################### (ip link show) ######################################${NC}" | |
sudo ip link show | grep --color "inet \|state\|$" |
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
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
b9f53d516702 sensudockerworkingvanilla_sensu:latest "/tmp/sensu-run.sh" 6 hours ago Up 6 hours 5671/tcp, 6379/tcp, 4567/tcp, 0.0.0.0:3000->3000/tcp sensudockerworkingvanilla_sensu_1 | |
0894dda2e240 sensudockerworkingvanilla_grafana:latest "/tmp/grafana-run.sh 6 hours ago Up 6 hours 0.0.0.0:4000->80/tcp sensudockerworkingvanilla_grafana_1 | |
b7492ee9c4ca sensudockerworkingvanilla_influxdb:latest "/tmp/influxdb-run.s 6 hours ago Up 6 hours 8090/tcp, 8099/tcp, 0.0.0.0:8083->8083/tcp, 0.0.0.0:8086->8086/tcp sensudockerworkingvanilla_influxdb_1 | |
6a4124a6b13c sensudockerworkingvanilla_redis:latest "/bin/sh -c /tmp/red 6 hours ago |
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
$ docker-machine -D create \ | |
> --driver amazonec2 \ | |
> --amazonec2-access-key $AWS_ACCESS_KEY_ID \ | |
> --amazonec2-secret-key $AWS_SECRET_ACCESS_KEY \ | |
> --amazonec2-vpc-id $AWS_VPC_ID \ | |
> test-instance6 | |
INFO[0000] Launching instance... | |
DEBU[0001] creating key pair: test-instance6 | |
DEBU[0001] configuring security group in vpc-42dffc27 | |
DEBU[0001] found existing security group (docker-machine) in vpc-42dffc27 |
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
We're sorry. Based on the information provided, there are no products available for you. If you feel this is an error, please contact customer support. |
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
#!/bin/sh | |
# Must have boot2docker installed if using Mac OS X | |
installMachineMac() { | |
sudo wget --no-check-certificate -O /usr/local/bin/docker-machine http://docker-machine-builds.evanhazlett.com/latest/docker-machine_darwin_amd64 | |
sudo chmod +x /usr/local/bin/docker-machine | |
} | |
installDockerBinMac(){ | |
sudo wget --no-check-certificate -O /usr/local/bin/docker https://get.docker.com/builds/Darwin/x86_64/docker-latest |
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
networkResources := &networkResource{} | |
if err := json.NewDecoder(strings.NewReader(testDat)).Decode(networkResources); err != nil { | |
return fmt.Errorf("Error reading remote info: %v", err) | |
} | |
fmt.Fprintf(cli.out, "Network Id: %s\n", networkResources.ID) | |
fmt.Fprintf(cli.out, "Network Name: %s\n", networkResources.Name) | |
fmt.Fprintf(cli.out, "Network Type: %s\n", networkResources.Type) | |
if networkResources.Endpoints != nil { | |
for _, networkResource := range networkResources.Endpoints { | |
fmt.Fprintf(cli.out, "Type: %d\n", networkResource.ID) |
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
- To build/test: | |
cd ~/libnetwork/cmd/dnet | |
go build &&./dnet -d | |
- In another terminal: | |
./dnet network create net1 | |
./dnet network create net2 | |
./dnet network ls | |
./dnet network ls -q | |
./dnet network ls --no-trunc | |
./dnet network ls -q --no-trunc |
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
# Test output for docker/libnetwork issue #207 | |
### Create a bridge named bridge | |
./dnet network create bridge | |
26e32cb558cbdb8c2efa1ab32132e67a1900d98dd0c180b0304a29f126c70d05 | |
./dnet network ls | |
NETWORK ID NAME TYPE | |
26e32cb558cb bridge null |
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
diff --git a/sandbox/sandbox_unsupported.go b/sandbox/sandbox_unsupported.go | |
index 55790c1..4a55f46 100644 | |
--- a/sandbox/sandbox_unsupported.go | |
+++ b/sandbox/sandbox_unsupported.go | |
@@ -5,23 +5,22 @@ package sandbox | |
import "errors" | |
var ( | |
- ErrNotImplemented = errors.New("not implemented") |
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
Jul 10 07:57:26 deb138 ovsdb-server: 73199|poll_loop|DBG|wakeup due to 0-ms timeout at tcp:127.0.0.1:49597 | |
Jul 10 07:57:26 deb138 ovsdb-server: 73200|poll_loop|DBG|wakeup due to [POLLIN] on fd 18 (127.0.0.1:6640<->127.0.0.1:49597) at ../lib/stream-fd.c:149 | |
Jul 10 07:57:26 deb138 ovsdb-server: 73201|jsonrpc|DBG|tcp:127.0.0.1:49597: received request, method="transact", params=["Open_vSwitch",{"uuid-name":"intf","op":"insert","table":"Interface","row":{"name":"eth0-a822b","type":"internal"}},{"uuid-name":"port","op":"insert","table":"Port","row":{"interfaces":["named-uuid","intf"],"name":"eth0-a822b"}},{"mutations":[["ports","insert",["set",[["named-uuid","port"]]]]],"where":[["name","==","ovsbr-docker0"]],"op":"mutate","table":"Bridge"}], id=46 | |
Jul 10 07:57:26 deb138 ovsdb-server: 73202|jsonrpc|DBG|unix:/tmp/stream-unix.3617.0: send notification, method="update", params=[null,{"Port":{"bb28c2e2-fc5e-4d3a-a5f6-add450beede2":{"new":{"trunks":["set",[]],"bond_fake_iface":false,"status":["map",[]],"other_config":[" |
OlderNewer