Browse Source

Updates the documentation.

master
Jonathan Rosenbaum 7 years ago
parent
commit
ed17aacc59
  1. 17
      README.md

17
README.md

@ -29,9 +29,20 @@ Moving along nicely!
## How to test/develop inside the running container process ## How to test/develop inside the running container process
This method uses [nsenter](http://jpetazzo.github.io/2014/06/23/docker-ssh-considered-evil/). Check out [jpetazzo/nsenter](https://github.com/jpetazzo/nsenter) on GitHub. ```
sudo docker exec -it ybdb /bin/bash
```
If it produces this error:
```
rpc error: code = 13 desc = invalid header field value "oci runtime error: exec failed: container_linux.go:247: starting container process caused \"process_linux.go:75: starting setns process caused \\\"fork/exec /proc/self/exe: no such file or directory\\\"\"\n"
```
then do this before attempting again:
``` ```
sudo PID=$(docker inspect --format {{.State.Pid}} <container_name_or_ID>) docker stop ybdb
sudo nsenter --target $PID --mount --uts --ipc --net --pid docker start ybdb
``` ```

Loading…
Cancel
Save