Skip to content

Instantly share code, notes, and snippets.

@wnkz
Created September 30, 2014 10:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wnkz/279e7057c475a0f55680 to your computer and use it in GitHub Desktop.
Save wnkz/279e7057c475a0f55680 to your computer and use it in GitHub Desktop.
## state.sls output
app-stag-01.foo.lan:
----------
ID: foo.io
Function: docker.running
Result: False
Comment: Container 'foo.io' cannot be started
foo.io
Changes:
Summary
------------
Succeeded: 0
Failed: 1
------------
Total: 1
## ---
## .sls
foo.io:
docker.running:
- name: foo.io
- image: foo/www-foo-io:0.0.2
- tty: True
- ports:
- "80/tcp":
HostIp: ""
HostPort: "2000"
## ---
## minion's log
2014-09-30 10:14:24,255 [urllib3.connectionpool][DEBUG ] "GET /run/docker.sock/v1.14/containers/foo.io/json HTTP/1.1" 404 32
2014-09-30 10:14:24,255 [salt.loaded.int.states.dockerio][DEBUG ] Docker-io running:{'status': False, 'comment': 'An exception occurred while starting your container foo.io', 'id': 'foo.io', 'out': 'Traceback (most recent call last):\n File "/usr/lib/python2.7/dist-packages/salt/modules/dockerio.py", line 893, in start\n dcontainer = _get_container_infos(container)[\'Id\']\n File "/usr/lib/python2.7/dist-packages/salt/modules/dockerio.py", line 346, in _get_container_infos\n container)\nCommandExecutionError: Container_id foo.io could not be resolved to an existing container\n'}
2014-09-30 10:14:24,256 [salt.loaded.int.states.dockerio][DEBUG ] Docker-io running:False
2014-09-30 10:14:24,256 [salt.state ][ERROR ] Container 'foo.io' cannot be started
foo.io
2014-09-30 10:14:24,256 [salt.state ][INFO ] Completed state [foo.io] at time 10:14:24.256031
2014-09-30 10:14:24,257 [salt.minion ][INFO ] Returning information for job: 20140930101417692413
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment