mirror of
https://github.com/fspc/ybdb.git
synced 2025-04-04 07:03:22 -04:00
Updates the documentation.
This commit is contained in:
parent
85d1099076
commit
ed17aacc59
27
README.md
27
README.md
@ -6,13 +6,13 @@ Yellow Bike [Project's](http://austinyellowbike.org) Hours and Transaction [Data
|
|||||||
|
|
||||||
Heavily developed [YBP Devel](https://github.com/fspc/Yellow-Bike-Database/tree/devel) is being utilized.
|
Heavily developed [YBP Devel](https://github.com/fspc/Yellow-Bike-Database/tree/devel) is being utilized.
|
||||||
|
|
||||||
##Pull the repository
|
## Pull the repository
|
||||||
|
|
||||||
```
|
```
|
||||||
docker pull bikebike/ybdb
|
docker pull bikebike/ybdb
|
||||||
```
|
```
|
||||||
|
|
||||||
##Run the docker container
|
## Run the docker container
|
||||||
|
|
||||||
Publish the container's port to the host:
|
Publish the container's port to the host:
|
||||||
|
|
||||||
@ -23,15 +23,26 @@ Publish the container's port to the host:
|
|||||||
docker run -d -p 81:80 --name="ybdb" bikebike/ybdb
|
docker run -d -p 81:80 --name="ybdb" bikebike/ybdb
|
||||||
```
|
```
|
||||||
|
|
||||||
###Status
|
### Status
|
||||||
|
|
||||||
Moving along nicely!
|
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 PID=$(docker inspect --format {{.State.Pid}} <container_name_or_ID>)
|
sudo docker exec -it ybdb /bin/bash
|
||||||
sudo nsenter --target $PID --mount --uts --ipc --net --pid
|
```
|
||||||
|
|
||||||
|
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:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
docker stop ybdb
|
||||||
|
docker start ybdb
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user