Created
October 29, 2015 15:58
-
-
Save thockin/3a8043ce6129a44af530 to your computer and use it in GitHub Desktop.
Console log of modified http://kubernetes.io/v1.0/docs/getting-started-guides/docker.html
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
root@test1:/home/thockin# ps auxw | grep docker | |
root 2312 0.0 0.0 7840 1976 pts/1 S+ 15:46 0:00 grep docker | |
root@test1:/home/thockin# curl https://get.docker.com | sh >/dev/null 2>&1 | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 10858 100 10858 0 0 54886 0 --:--:-- --:--:-- --:--:-- 88276 | |
root@test1:/home/thockin# ps auxw | grep docker | |
root 3868 0.0 0.5 85400 20768 ? Sl 15:47 0:00 /usr/bin/docker daemon -p /var/run/docker.pid | |
root 3959 0.0 0.0 7840 1980 pts/1 S+ 15:48 0:00 grep docker | |
root@test1:/home/thockin# docker version | |
Client: | |
Version: 1.8.3 | |
API version: 1.20 | |
Go version: go1.4.2 | |
Git commit: f4bf5c7 | |
Built: Mon Oct 12 05:33:35 UTC 2015 | |
OS/Arch: linux/amd64 | |
Server: | |
Version: 1.8.3 | |
API version: 1.20 | |
Go version: go1.4.2 | |
Git commit: f4bf5c7 | |
Built: Mon Oct 12 05:33:35 UTC 2015 | |
OS/Arch: linux/amd64 | |
root@test1:/home/thockin# docker daemon --help 2>&1 | egrep '(--icc|--iptables|--ip-forward)' | |
--icc=true Enable inter-container communication | |
--ip-forward=true Enable net.ipv4.ip_forward | |
--iptables=true Enable addition of iptables rules | |
root@test1:/home/thockin# # Running through kube getting-started for docker, with tweaks | |
root@test1:/home/thockin# docker run --net=host -d gcr.io/google_containers/etcd:2.0.9 /usr/local/bin/etcd --addr=127.0.0.1:4001 --bind-addr=0.0.0.0:4001 --data-dir=/var/etcd/data | |
Unable to find image 'gcr.io/google_containers/etcd:2.0.9' locally | |
Pulling repository gcr.io/google_containers/etcd | |
b6b9a86dc06a: Download complete | |
511136ea3c5a: Download complete | |
4ec7f790b564: Download complete | |
cfeffad3cf16: Download complete | |
Status: Downloaded newer image for gcr.io/google_containers/etcd:2.0.9 | |
gcr.io/google_containers/etcd: this image was pulled from a legacy registry. Important: This registry version will not be supported in future versions of docker. | |
WARNING: Your kernel does not support memory swappiness capabilities, memory swappiness discarded. | |
67262dbc2f6f8859448a6fafbd17498fe7e4c43846d5591af954500f7a2615f5 | |
root@test1:/home/thockin# docker run --net=host -d -v /var/run/docker.sock:/var/run/docker.sock gcr.io/google_containers/hyperkube:v1.0.7 /hyperkube kubelet --api_servers=http://localhost:8080 --v=2 --address=0.0.0.0 --enable_server --hostname_override=127.0.0.1 --config=/etc/kubernetes/manifests | |
Unable to find image 'gcr.io/google_containers/hyperkube:v1.0.7' locally | |
Pulling repository gcr.io/google_containers/hyperkube | |
1becb4903462: Download complete | |
511136ea3c5a: Download complete | |
541923dd11eb: Download complete | |
11971b6377ef: Download complete | |
b74dc8aa9fc8: Download complete | |
88d5f7d8ea4a: Download complete | |
15398d8d2630: Download complete | |
fd7f666528cd: Download complete | |
ffb776a9b15c: Download complete | |
e9261158389c: Download complete | |
1d9291798ace: Download complete | |
Status: Downloaded newer image for gcr.io/google_containers/hyperkube:v1.0.7 | |
gcr.io/google_containers/hyperkube: this image was pulled from a legacy registry. Important: This registry version will not be supported in future versions of docker. | |
WARNING: Your kernel does not support memory swappiness capabilities, memory swappiness discarded. | |
dcd44f2ef69e15c93fa99142bbfae5343fc24c9b14612f26c12fc8a728df5a8c | |
root@test1:/home/thockin# docker run -d --net=host --privileged gcr.io/google_containers/hyperkube:v1.0.7 /hyperkube proxy --master=http://127.0.0.1:8080 --v=2 | |
WARNING: Your kernel does not support memory swappiness capabilities, memory swappiness discarded. | |
01f65bb2c647c56cc666208ba2657f78828f80fe688c8541769c1cafa611d71b | |
root@test1:/home/thockin# docker ps | |
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES | |
01f65bb2c647 gcr.io/google_containers/hyperkube:v1.0.7 "/hyperkube proxy --m" 7 seconds ago Up 6 seconds hungry_ptolemy | |
37cd34aa1641 gcr.io/google_containers/hyperkube:v1.0.7 "/hyperkube scheduler" 43 seconds ago Up 43 seconds k8s_scheduler.3422e748_k8s-master-127.0.0.1_default_d22a6d9a5c362b9596c08a959ac26f0e_f25a92f8 | |
5f644ba7ece4 gcr.io/google_containers/hyperkube:v1.0.7 "/hyperkube apiserver" 43 seconds ago Up 43 seconds k8s_apiserver.de8d0256_k8s-master-127.0.0.1_default_d22a6d9a5c362b9596c08a959ac26f0e_97348e8b | |
1b1ed4ee566e gcr.io/google_containers/hyperkube:v1.0.7 "/hyperkube controlle" 43 seconds ago Up 43 seconds k8s_controller-manager.22acee62_k8s-master-127.0.0.1_default_d22a6d9a5c362b9596c08a959ac26f0e_6c3800ab | |
54f7efd6a548 gcr.io/google_containers/pause:0.8.0 "/pause" 49 seconds ago Up 48 seconds k8s_POD.e4cc795_k8s-master-127.0.0.1_default_d22a6d9a5c362b9596c08a959ac26f0e_a46c6a93 | |
dcd44f2ef69e gcr.io/google_containers/hyperkube:v1.0.7 "/hyperkube kubelet -" 54 seconds ago Up 54 seconds clever_ardinghelli | |
67262dbc2f6f gcr.io/google_containers/etcd:2.0.9 "/usr/local/bin/etcd " 2 minutes ago Up 2 minutes nostalgic_pare | |
root@test1:/home/thockin# wget https://storage.googleapis.com/kubernetes-release/release/v1.0.7/bin/linux/amd64/kubectl | |
--2015-10-29 15:54:26-- https://storage.googleapis.com/kubernetes-release/release/v1.0.7/bin/linux/amd64/kubectl | |
Resolving storage.googleapis.com (storage.googleapis.com)... 74.125.23.128, 2404:6800:4008:c03::80 | |
Connecting to storage.googleapis.com (storage.googleapis.com)|74.125.23.128|:443... connected. | |
HTTP request sent, awaiting response... 200 OK | |
Length: 19387320 (18M) [application/octet-stream] | |
Saving to: `kubectl' | |
100%[==================================================================================================================================>] 19,387,320 48.0M/s in 0.4s | |
2015-10-29 15:54:27 (48.0 MB/s) - `kubectl' saved [19387320/19387320] | |
root@test1:/home/thockin# chmod 755 kubectl | |
root@test1:/home/thockin# ./kubectl get nodes | |
NAME LABELS STATUS | |
127.0.0.1 kubernetes.io/hostname=127.0.0.1 Ready | |
root@test1:/home/thockin# ./kubectl -s http://localhost:8080 run-container nginx --image=nginx --port=80 | |
CONTROLLER CONTAINER(S) IMAGE(S) SELECTOR REPLICAS | |
nginx nginx nginx run=nginx 1 | |
root@test1:/home/thockin# ./kubectl expose rc nginx --port=80 | |
NAME LABELS SELECTOR IP(S) PORT(S) | |
nginx run=nginx run=nginx 80/TCP | |
root@test1:/home/thockin# ./kubectl get svc nginx | |
NAME LABELS SELECTOR IP(S) PORT(S) | |
nginx run=nginx run=nginx 10.0.0.166 80/TCP | |
root@test1:/home/thockin# curl 10.0.0.166 | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Welcome to nginx!</title> | |
<style> | |
body { | |
width: 35em; | |
margin: 0 auto; | |
font-family: Tahoma, Verdana, Arial, sans-serif; | |
} | |
</style> | |
</head> | |
<body> | |
<h1>Welcome to nginx!</h1> | |
<p>If you see this page, the nginx web server is successfully installed and | |
working. Further configuration is required.</p> | |
<p>For online documentation and support please refer to | |
<a href="http://nginx.org/">nginx.org</a>.<br/> | |
Commercial support is available at | |
<a href="http://nginx.com/">nginx.com</a>.</p> | |
<p><em>Thank you for using nginx.</em></p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment