- 2014-07:
Update dockerfile for demo app
Fix type in demo code
Fix images after docker site update
- 2014-04:
Initial release for SID
$ boot2docker init
$ boot2docker up
Starting boot2docker-vm...
Started.
$ docker run ubuntu:latest /bin/echo hello world
hello world
$ docker ps -a
$ docker run -d ubuntu:latest /bin/sh -c "while true; do echo ping; sleep 1; done"
bd45aacc39
$ docker ps
$ docker attach bd45aacc39
$ docker logs bd45aacc39
$ git clone https://github.com/meier-christoph/sid-docker-demo-app.git
$ cd sid-docker-demo-app
$ npm install
$ node app
$ docker build -t meierc/sid-docker-demo-app .
$ docker images
$ docker run -d -p 8080:8888 meierc/sid-docker-demo-app
$ boot2docker ssh -L 8080:localhost:8080
$ docker login
$ docker push meierc/sid-docker-demo-app
$ docker run -d -r 8080:8888 meierc/sid-docker-demo-app
[Unit]
Description=My Advanced Service
After=etcd.service
After=docker.service
[Service]
ExecStart=/bin/bash -c '/usr/bin/docker start -a apache || /usr/bin/docker run -name apache -p 80:80 coreos/apache /usr/sbin/apache2ctl -D FOREGROUND'
ExecStartPost=/usr/bin/etcdctl set /domains/example.com/10.10.10.123:8081 running
ExecStop=/usr/bin/docker stop apache
ExecStopPost=/usr/bin/etcdctl rm /domains/example.com/10.10.10.123:8081
[Install]
WantedBy=multi-user.target
subgun-http.1.service
[X-Fleet]
X-Conflicts=subgun-http.*.service
subgun-presence.1.service
[X-Fleet]
X-ConditionMachineOf=subgun-http.1.service
#cloud-config coreos: etcd: name: node001 discovery: https://discovery.etcd.io/<token> addr: $private_ipv4:4001 peer-addr: $private_ipv4:7001
units: - name: etcd.service command: start - name: fleet.service command: start