rancher: cannot exec a container that has run and stopped
Rancher Version: 1.2.0
Docker Version: 1.12.3
OS and where are the hosts located? (cloud, bare metal, etc): 3.10.0-327.36.2.el7.x86_64
Setup Details: (single node rancher vs. HA rancher, internal DB vs. external DB) single node rancher, internal DB
Environment Type: (Cattle/Kubernetes/Swarm/Mesos) Cattle
Steps to Reproduce: Create service in stack. Open service in UI, trying to Execute Shell.
Results: Popup window opens and closes.
Expected: Popup window is opened and you can work in container Bash.
When I ssh to host and try to:
docker exec -it r-icms-postgresql-1-b347541b bash
I got:
rpc error: code = 13 desc = invalid header field value "oci runtime error: exec failed: cannot exec a container that has run and stopped\n"
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 3
- Comments: 26 (9 by maintainers)
I’m seeing the same thing in docker v1.13.0
+1 have the same issue on 17.06.2-ce
reproducted in v1.13.0
This is a docker bug marked fixed in 1.12.3 (the server version is the relevant one here, not client). https://github.com/docker/docker/issues/27540