Skip to content

Instantly share code, notes, and snippets.

Mar 23 14:02:14 ip-10-0-0-153.ec2.internal systemd[1]: Started kubelet.service.
Mar 23 14:02:14 ip-10-0-0-153.ec2.internal kubelet-wrapper[1656]: image: using image from file /usr/share/rkt/stage1-fly.aci
Mar 23 14:02:15 ip-10-0-0-153.ec2.internal kubelet-wrapper[1656]: image: searching for app image quay.io/upmc_enterprises/hyperkube2
Mar 23 14:02:15 ip-10-0-0-153.ec2.internal kubelet-wrapper[1656]: image: remote fetching from URL "https://quay.io/c1/aci/quay.io/upmc_enterprises/hyperkube2/v1.2.0/aci/linux/amd64/"
Mar 23 14:02:15 ip-10-0-0-153.ec2.internal kubelet-wrapper[1656]: pubkey: prefix: "quay.io/upmc_enterprises/hyperkube2"
Mar 23 14:02:15 ip-10-0-0-153.ec2.internal kubelet-wrapper[1656]: key: "https://quay.io/aci-signing-key"
Mar 23 14:02:15 ip-10-0-0-153.ec2.internal kubelet-wrapper[1656]: gpg key fingerprint is: BFF3 13CD AA56 0B16 A898 7B8F 72AB F5F6 799D 33BC
Mar 23 14:02:15 ip-10-0-0-153.ec2.internal kubelet-wrapper[1656]: Quay.io ACI Converter (ACI conversion signing key) <support@quay.io>
Ma
Mar 23 13:42:48 ip-10-0-2-11.ec2.internal kubelet-wrapper[24875]: image: using image from file /usr/share/rkt/stage1-fly.aci
Mar 23 13:42:49 ip-10-0-2-11.ec2.internal kubelet-wrapper[24875]: image: searching for app image quay.io/upmc_enterprises/hyperkube
Mar 23 13:42:49 ip-10-0-2-11.ec2.internal kubelet-wrapper[24875]: image: remote fetching from URL "https://quay.io/c1/aci/quay.io/upmc_enterprises/hyperkube/v1.2.0/aci/linux/amd64/"
Mar 23 13:42:49 ip-10-0-2-11.ec2.internal kubelet-wrapper[24875]: image: keys already exist for prefix "quay.io/upmc_enterprises/hyperkube", not fetching again
Mar 23 13:42:49 ip-10-0-2-11.ec2.internal kubelet-wrapper[24875]: image: downloading signature from https://quay.io/c1/aci/quay.io/upmc_enterprises/hyperkube/v1.2.0/aci.asc/linux/amd64/
Mar 23 13:42:49 ip-10-0-2-11.ec2.internal kubelet-wrapper[24875]: Downloading signature: 0 B/473 B
Mar 23 13:42:49 ip-10-0-2-11.ec2.internal kubelet-wrapper[24875]: Downloading signature: 473 B/473 B
Mar 23 13:42:50 ip-10-0-2-11.ec2.inte
# Workshop 102: Dockerfiles
The goal of this workshop is to build out your own Docker image based upon a dockerfile.
This image will be a simple web server which will host some html files of a simple website.
## Steps:
1. Make a directory to host your project
- Create a file named "`Dockerfile`"
- In this file, add these lines:
# Docker 101 Workshop
PreReqs: You will need a docker-engine to run these examples! Please see the getting started guide on the main page for assistance.
## Run a container
1. Start your image:
```
docker run -d -p 80 tutum/hello-world
~ ❯❯❯ kubectl get po
NAME READY STATUS RESTARTS AGE
kube-system-k8s-node01 1/1 Running 1 17h
webapp-1czsd 1/1 Running 0 15h
webapp-7pri6 1/1 Terminating 0 17h
webapp-iq0q8 1/1 Terminating 0 15h
webapp-n0nz2 1/1 Running 0 15h
webapp-zosy1 1/1 Terminating 0 15h
~ ❯❯❯ kubectl describe po webapp-7pri6
Name: webapp-7pri6
export CONTAINER_IP="echo `ifconfig eth0 2>/dev/null|awk '/inet addr:/ {print $2}'|sed 's/addr://'`"
export CONTAINER_IP_K8S=${CONTAINER_IP//./-}
{
"apiVersion": "v1beta3",
"kind": "ReplicationController",
"metadata": {
"labels": {
"name": "dermapi"
},
"name": "dermapi"
},
"spec": {
Error: [ng:areq] Argument 'fn' is not a function, got undefined
http://errors.angularjs.org/1.2.16/ng/areq?p0=fn&p1=not%20aNaNunction%2C%20got%20undefined
at http://localhost:8000/widget/scripts/vendor.js:10416:12
at assertArg (http://localhost:8000/widget/scripts/vendor.js:11781:11)
at assertArgFn (http://localhost:8000/widget/scripts/vendor.js:11791:3)
at annotate (http://localhost:8000/widget/scripts/vendor.js:13527:5)
at Object.invoke (http://localhost:8000/widget/scripts/vendor.js:14184:21)
at http://localhost:8000/widget/scripts/vendor.js:14049:37
at getService (http://localhost:8000/widget/scripts/vendor.js:14170:39)
at Object.invoke (http://localhost:8000/widget/scripts/vendor.js:14197:13)