Skip to content

Instantly share code, notes, and snippets.

@anshdivu
Created April 29, 2016 16:00
Show Gist options
  • Save anshdivu/536c666238c2ec6f613791fe4701e6b4 to your computer and use it in GitHub Desktop.
Save anshdivu/536c666238c2ec6f613791fe4701e6b4 to your computer and use it in GitHub Desktop.
▶ vagrant destroy
core-01: Are you sure you want to destroy the 'core-01' VM? [y/N] y
==> core-01: Forcing shutdown of VM...
==> core-01: Destroying VM and associated drives...
==> core-01: Pruning invalid NFS exports. Administrator privileges will be required...
==> core-01: Running cleanup tasks for 'file' provisioner...
==> core-01: Running cleanup tasks for 'shell' provisioner...
==> core-01: Running cleanup tasks for 'file' provisioner...
==> core-01: Running cleanup tasks for 'shell' provisioner...
==> core-01: Running cleanup tasks for 'shell' provisioner...
==> core-01: Running cleanup tasks for 'shell' provisioner...
docker/machine/vm master ✗ 10d ⚑
▶ vagrant box update && vagrant up && vagrant ssh
==> core-01: Checking for updates to 'coreos-stable'
core-01: Latest installed version: 899.15.0
core-01: Version constraints: >= 308.0.1
core-01: Provider: virtualbox
==> core-01: Box 'coreos-stable' (v899.15.0) is running the latest version.
Bringing machine 'core-01' up with 'virtualbox' provider...
==> core-01: Importing base box 'coreos-stable'...
==> core-01: Matching MAC address for NAT networking...
==> core-01: Checking if box 'coreos-stable' is up to date...
==> core-01: Setting the name of the VM: machine_core-01_1461945254552_31160
==> core-01: Clearing any previously set network interfaces...
==> core-01: Preparing network interfaces based on configuration...
core-01: Adapter 1: nat
core-01: Adapter 2: hostonly
==> core-01: Forwarding ports...
core-01: 22 => 2222 (adapter 1)
==> core-01: Running 'pre-boot' VM customizations...
==> core-01: Booting VM...
==> core-01: Waiting for machine to boot. This may take a few minutes...
core-01: SSH address: 127.0.0.1:2222
core-01: SSH username: core
core-01: SSH auth method: private key
core-01: Warning: Connection timeout. Retrying...
==> core-01: Machine booted and ready!
==> core-01: Setting hostname...
==> core-01: Configuring and enabling network interfaces...
==> core-01: Exporting NFS shared folders...
==> core-01: Preparing to edit /etc/exports. Administrator privileges will be required...
==> core-01: Mounting NFS shared folders...
==> core-01: Running provisioner: file...
==> core-01: Running provisioner: shell...
core-01: Running: inline script
==> core-01: Running provisioner: file...
==> core-01: Running provisioner: shell...
core-01: Running: inline script
==> core-01: Running provisioner: shell...
core-01: Running: /var/folders/nk/p4kd1r391936rd833z42gjlw0000gn/T/vagrant-shell20160429-18986-1q4zlt5.sh
==> core-01: /home/core/workspace/docker/machine/script/dockercfg-cache found, making sure core user and root user in the VM can access it
==> core-01: Running provisioner: shell...
core-01: Running: /var/folders/nk/p4kd1r391936rd833z42gjlw0000gn/T/vagrant-shell20160429-18986-16dqbaz.sh
==> core-01: The C2FO docker scripts have been added to the core and root user's PATH
CoreOS stable (899.15.0)
Update Strategy: No Reboots
Failed Units: 1
mount-docker-partition.service
core@core-01 ~ $ docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
<none> <none> 9ee13ca3b908 4 months ago 125.1 MB
core@core-01 ~ $ c2fo-first-run-backing-apps.sh
Running a new redis container
Unable to find image 'quay.io/c2fo/backing-apps:redis-2.6.17' locally
redis-2.6.17: Pulling from c2fo/backing-apps
23cb15b0fcec: Pull complete
cbafac7e689c: Pull complete
8eb77dabd589: Pull complete
73ba8548f492: Pull complete
8cbc0227e969: Pull complete
eca42f73cf78: Pull complete
661def3028a6: Pull complete
75a555865123: Pull complete
6c34201dfb84: Pull complete
feb2dbfc6d4f: Pull complete
957b3592c670: Pull complete
a4eef49040e2: Pull complete
553ecad75305: Pull complete
c43481d0b517: Pull complete
2734739f2f41: Pull complete
ab90af662f00: Pull complete
f1cb70d54a6a: Pull complete
77dd9abc9ef3: Pull complete
f9373eb891bf: Pull complete
8737ec99a436: Pull complete
3d0b098bde5f: Pull complete
984eed08a315: Pull complete
f2025d517946: Pull complete
437782a2032a: Pull complete
e56a91880c59: Pull complete
ba7413ca4ce1: Pull complete
0d0aba17859c: Pull complete
3741522fb1ff: Pull complete
bc32a0bbfd19: Pull complete
e56e7d4bb691: Pull complete
9f133b3fb115: Pull complete
e389be8233dd: Pull complete
6dbb42ef5cd1: Pull complete
3708891c9fe3: Pull complete
Digest: sha256:83f1b4f6ed959e5ecd1d8190253ba924d6ced1897cb080f62074438651b77a22
Status: Downloaded newer image for quay.io/c2fo/backing-apps:redis-2.6.17
3a46b41e08e80c2dca50ab3cc1fcc00689a383121b99804629e9e28e44a4c372
Running a new test redis container
707891f0d2de695619bc4316d6b22401554714e9c2ade4466c50865721907c3d
Running a new mongo container
Unable to find image 'quay.io/c2fo/backing-apps:mongo-3.0.7' locally
mongo-3.0.7: Pulling from c2fo/backing-apps
0371709c5a2f: Pull complete
0f904f2b78e4: Pull complete
049a9b7de90b: Pull complete
2ceb08b1eb3e: Pull complete
e0a3f0f17cdd: Pull complete
9230cb863082: Pull complete
73994f7bd91a: Pull complete
a86c52613127: Pull complete
c90dd0723635: Pull complete
Digest: sha256:aad857922083ec47d97daf480a24c9e8254b00c1ea455b31c134befa90f95e61
Status: Downloaded newer image for quay.io/c2fo/backing-apps:mongo-3.0.7
55898182fb193210fb7951c9730dc23fbbde332ba312101dc431734cb8e42326
Running a new mongo container
345197f01506117476079c7675ec30155cadbad32b787b19ca9d777c1577952a
Running a new rabbitmq container
Unable to find image 'quay.io/c2fo/backing-apps:rabbitmq-3.5.6' locally
rabbitmq-3.5.6: Pulling from c2fo/backing-apps
8dd030b6f1e3: Pull complete
e02f5ce1b1f3: Pull complete
31f69ef5572c: Pull complete
6c86b91e4492: Pull complete
f92e0f25005e: Pull complete
dc4f995601b0: Pull complete
240d195ec7e4: Pull complete
ebeee3083513: Pull complete
43cd40cf29a3: Pull complete
3b609d289466: Pull complete
2c487f3371f9: Pull complete
4aee7c8abf14: Pull complete
579483b0e4f9: Pull complete
e8e371fc85f0: Pull complete
ce386789022d: Pull complete
2fb02555fb10: Pull complete
90cfdd0dc3c2: Pull complete
Digest: sha256:97ef4c4444ce2d4f565080b37de9c508086ed2db90e4c0f3c4d64b9a90dfee62
Status: Downloaded newer image for quay.io/c2fo/backing-apps:rabbitmq-3.5.6
705492e80062f17c5b6c0f00c7a34f0f8b830f0a5142c81433fcde40b04f4e7f
Running a new test rabbitmq container
11be1a533515c946828786b04c37560a44cae7607707f022e099ddebcd53e273
Running a new postgresql container
Unable to find image 'quay.io/c2fo/backing-apps:postgresql-9.4.6' locally
postgresql-9.4.6: Pulling from c2fo/backing-apps
73e8d4f6bf84: Pull complete
040bf8e08425: Pull complete
ee64d83fa15d: Pull complete
fc22d240b91c: Pull complete
8b581b96ac2b: Pull complete
34d1a2c09d9e: Pull complete
5edc7d54396f: Pull complete
e5851beb8a6c: Pull complete
64035837e162: Pull complete
cfd2a741f443: Pull complete
0cbc7e19531a: Pull complete
016abed9d98e: Pull complete
2680312688f1: Pull complete
873741212ed4: Pull complete
53b3d0e30264: Pull complete
d7551714a8e6: Pull complete
1096aeaebb42: Pull complete
473708765394: Pull complete
da6698c4ca20: Pull complete
a15c0d5f8b48: Pull complete
5b14bf3ea031: Pull complete
234beb34f6ee: Pull complete
da236970a63a: Pull complete
b49074c3fa7e: Pull complete
000188346307: Pull complete
4b6d438ccbb4: Pull complete
4fcbf197f200: Pull complete
0ed690943036: Pull complete
4221250fd36f: Pull complete
03f236529dc0: Pull complete
07270aa45b78: Pull complete
2f8f526682f4: Pull complete
caa7fdb5dfea: Pull complete
d4c287ae3a18: Pull complete
1a3a90caac0b: Pull complete
63386dde981f: Pull complete
0d19f259277c: Pull complete
Digest: sha256:94cf0dd3367ace37c1c617220ef6fe7fc583aca567fb2fece56337d885d2678f
Status: Downloaded newer image for quay.io/c2fo/backing-apps:postgresql-9.4.6
e16255cc87ab823fd9a0f9afa3fa2a437f98573b3500233155dc38ea8db3f626
Running a new postgresql container
Error response from daemon: Could not find container for entity id b465d971ec4cbd6deb8f999e0ff9163bba1e765f3b76ab6b8737f6b757300546
core@core-01 ~ $ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
e16255cc87ab quay.io/c2fo/backing-apps:postgresql-9.4.6 "/bin/bash -c /root/s" 29 seconds ago Up 28 seconds 0.0.0.0:5432->5432/tcp c2fo_postgres
11be1a533515 quay.io/c2fo/backing-apps:rabbitmq-3.5.6 "/bin/bash -c /root/l" About a minute ago Up About a minute 0.0.0.0:5673->5672/tcp, 0.0.0.0:15673->15672/tcp c2fo_test_rabbit
705492e80062 quay.io/c2fo/backing-apps:rabbitmq-3.5.6 "/bin/bash -c /root/l" About a minute ago Up About a minute 0.0.0.0:5672->5672/tcp, 0.0.0.0:15672->15672/tcp c2fo_rabbit
345197f01506 quay.io/c2fo/backing-apps:mongo-3.0.7 "/bin/bash -c /root/l" About a minute ago Up About a minute 28017/tcp, 0.0.0.0:27018->27017/tcp c2fo_test_mongo
55898182fb19 quay.io/c2fo/backing-apps:mongo-3.0.7 "/bin/bash -c /root/l" About a minute ago Up About a minute 0.0.0.0:27017->27017/tcp, 28017/tcp c2fo_mongo
707891f0d2de quay.io/c2fo/backing-apps:redis-2.6.17 "/bin/bash -c '/tmp/l" 2 minutes ago Up 2 minutes 0.0.0.0:6380->6379/tcp c2fo_test_redis
3a46b41e08e8 quay.io/c2fo/backing-apps:redis-2.6.17 "/bin/bash -c '/tmp/l" 2 minutes ago Up 2 minutes 0.0.0.0:6379->6379/tcp c2fo_redis
core@core-01 ~ $ docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
quay.io/c2fo/backing-apps postgresql-9.4.6 0d19f259277c 32 hours ago 395.4 MB
quay.io/c2fo/backing-apps redis-2.6.17 3708891c9fe3 4 months ago 164.5 MB
quay.io/c2fo/backing-apps rabbitmq-3.5.6 90cfdd0dc3c2 4 months ago 317.5 MB
quay.io/c2fo/backing-apps mongo-3.0.7 c90dd0723635 4 months ago 324.6 MB
core@core-01 ~ $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment