Docker Image fails on initialization

Thursday, 22 October 2020 · 3 messages
MU
Moishy Uminer22 Oct 2020 02:37 #
Hi, I downloaded the basex/basexhttp docker image, and upon running docker run --name basexhttp basex/basexhttp:latest --publish 8984:8984 --volume "$HOME/basex/data":/srv/basex/data I received the following error message: /usr/local/bin/mvn-entrypoint.sh: exec: line 50: illegal option -- after which the container exits. Did I do something wrong (in which case I'll be happy to hear of my error), or is this a bug (in which case I'd appreciate it if this were fixed). Thanks in advance!
CG
Christian Grün22 Oct 2020 14:03 #
Hi Moishy, The docker integration of BaseX is something we eventually need to look at again. I haven’t used it by myself, but could you please check the following links and keep us stay tuned? https://docs.basex.org/wiki/Docker https://devops.stackexchange.com/questions/12338/cannot-get-bash-prompt-error-response-from-daemon-container-foo-is-not-running https://www.mail-archive.com/basex-talk at mailman.uni-konstanz.de/msg13049.html Best, Christian
Quoted text · Moishy Uminer · 8 lines
On Thu, Oct 22, 2020 at 12:37 AM Moishy Uminer <mosheduminer at gmail.com> wrote: > > Hi, I downloaded the basex/basexhttp docker image, and upon running docker run --name basexhttp basex/basexhttp:latest --publish 8984:8984 --volume "$HOME/basex/data":/srv/basex/data I received the following error message: > /usr/local/bin/mvn-entrypoint.sh: exec: line 50: illegal option -- after which the container exits. > > Did I do something wrong (in which case I'll be happy to hear of my error), or is this a bug (in which case I'd appreciate it if this were fixed). > > Thanks in advance!
MS
Michael Seiferlein reply to Moishy Uminer, 22 Oct 2020, 02:3722 Oct 2020 15:36 #
Hi Moishy, I think you simply mixed up the arguments. Arguments that come after the container name will be passet to the running container, arguments that come before will be passed to the docker daemon. For example:
Quoted text · Moishy Uminer · 1 line
>> https://docs.docker.com/engine/reference/run/
You want to pass your arguments to the docker daemon, as it is the docker daemon that will: publish the ports and mount the volume(s), so if you change your command to:
Quoted text · Moishy Uminer · 1 line
> docker run --name basexhttp --publish 8984:8984 --volume "$HOME/basex/data":/srv/basex/data basex/basexhttp:latest
It should work as intended :-) Best Michael
Quoted text · Moishy Uminer · 8 lines
> Am 22.10.2020 um 00:37 schrieb Moishy Uminer <mosheduminer at gmail.com>: > > Hi, I downloaded the basex/basexhttp docker image, and upon running docker run --name basexhttp basex/basexhttp:latest --publish 8984:8984 --volume "$HOME/basex/data":/srv/basex/data I received the following error message: > /usr/local/bin/mvn-entrypoint.sh: exec: line 50: illegal option -- after which the container exits. > > Did I do something wrong (in which case I'll be happy to hear of my error), or is this a bug (in which case I'd appreciate it if this were fixed). > > Thanks in advance!

⚡Generated with XQuery