- docker CLI commands: api/client/commands.go
- docker run flags parsing: runconfig/parse.go
- docker container config: runconfig/config.go
- docker API handlers: api/server/server.go
- docker Job dispatcher: server/server.go
- docker Daemon commands: daemon/daemon.go
- docker Container commands: daemon/container.go
- docker native execution driver commands: daemon/execdriver/native/create.go
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 | |
set -ex | |
USAGE='usage: dd if=<source> | DISK= BUCKET= [ZONE= SIZE=] pdstrap.sh' | |
DISK=${DISK:?missing ${USAGE}} | |
BUCKET=${BUCKET:?missing ${USAGE}} | |
ZONE=${ZONE:-us-central1-a} | |
SIZE=${SIZE:-200} | |
TMPDIR=$(mktemp -d) |
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
FROM google/cloud-sdk | |
RUN apt-get update && apt-get install -y --no-install-recommends curl sshpass netcat-traditional | |
RUN curl https://get.docker.io/builds/Linux/x86_64/docker-latest -o /bin/docker && chmod +x /bin/docker | |
RUN curl http://stedolan.github.io/jq/download/linux64/jq -o /bin/jq && chmod +x /bin/jq | |
ADD gce2docker-fork.sh / | |
EXPOSE 44243 | |
ENV DOCKER_HOST :44243 | |
ENTRYPOINT ["/gce2docker-fork.sh"] |
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
$ ls | |
builder-context/ | |
myapp-context/ | |
Dockerfile | |
Dockerfile.template | |
$ docker build -t myapp-builder . # assemble my builder image | |
$ docker run myapp-builder # build my app | |
<output a tar w/ a Dockerfile on stdout> | |
$ docker run myapp-builder | docker build -t myapp - # build my app |
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
{ | |
"provider": "gce", | |
"bootstrapper": { | |
"workspace": "/target" | |
}, | |
"image": { | |
"name": "disk", | |
"description": "Debian {system.release} {system.architecture}" | |
}, | |
"system": { |
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
FROM busybox | |
VOLUME ["/.config"] | |
ADD private /.config/private | |
CMD cat /.config/private |
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
containers: | |
- image: "dockerfile/nginx" | |
ports: | |
- containerPort: 80 | |
hostPort: 8080 |
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
{ | |
"projection": [], | |
"kinds": [{ | |
"name": "Company" | |
}], | |
"filter": { | |
"propertyFilter": { | |
"property": { | |
"name": "__key__" | |
}, |
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
$ rm -fR ~/mygo/src/github.com/dotcloud/gordon | |
$ rm -fR ~/mygo/src/github.com/docker/gordon | |
$ go get github.com/dotcloud/gordon/pulls | |
$ ls ~/mygo/src/github.com/dotcloud/gordon | |
AUTHORS display.go github.go legacy MAINTAINERS pulls review.go utils.go | |
color.go filters issues LICENSE.md maintainers.go README.md sorter.go | |
$ ls ~/mygo/src/github.com/docker/gordon | |
AUTHORS display.go github.go legacy MAINTAINERS pulls review.go utils.go | |
color.go filters issues LICENSE.md maintainers.go README.md sorter.go |