A basic jetty
container:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7c10b0ca16bd jetty "/docker-entrypoint.…" 21 seconds ago Up 18 seconds 8080/tcp, 0.0.0.0:80->800/tcp, 0.0.0.0:443->8443/tcp jetty01
can easily get a bash
terminal as:
docker exec -ti jetty01 bash
created as so:
docker run -d \
--name jetty01 \
-d \
-p 80:800 \
-p 443:8443 \
jetty
but, this approach fails with the basex
from docker hub:
docker exec -ti basexhttp bash
Error response from daemon: Container 52b5337d7e6a22964310afb0be5f79ace38993173218fae8d9dcd858e4681142 is not running
created as:
docker run -d \
--name basexhttp \
--publish 1984:1984 \
--publish 8984:8984 \
--volume "$HOME/basex/data":/srv/basex/data \
--volume "$HOME/basex/repo":/srv/basex/repo \
--volume "$HOME/basex/webapp":/srv/basex/webapp \
basex/basexhttp:latest
How do I get a root bash terminal?
How do I start the basex
container? I tried:
docker start 52b5337d7e6a22964310afb0be5f79ace38993173218fae8d9dcd858e4681142
still nothing listed. But, docker ps -a
shows:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
52b5337d7e6a basex/basexhttp:latest "/usr/local/bin/mvn-…" 10 minutes ago Exited (1) 2 minutes ago basexhttp
although it doesn't show in docker ps
because it's not running.
/srv/src/main/webapp/WEB-INF/web.xml not found
. Obtained usingdocker logs basexhttp