Hi,
I am running chronos in docker conatiner and I am trying to change hosntame using --hostname switch.
In the end I am getting following error: Error: Bad arguments for option 'hostname': '10.0.1.102 0dcbf74a80c3' - you should provide exactly one argument for this option
It smells like a bug to me, but its also possible I am doing something wrong.
How I run container:
ip-10-0-1-180 ~ # docker run --rm -it -e LIBPROCESS_IP=`cat /etc/ip` -e IP=`cat /etc/ip` -p 8080:8080 -e LIBPROCESS_PORT=10001 -e ZOOKEEPER_ENDPOINTS=`/var/lib/scripts/get_zookeeper_endpoints.sh`
quay.io/appuri/chronos /bin/bash
Show envs:
mesos@0dcbf74a80c3:/opt$ env
LIBPROCESS_IP=10.0.1.102
HOSTNAME=0dcbf74a80c3
TERM=xterm
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD=/opt
VERSION=2.3.4
SHLVL=1
HOME=/home/mesos
LIBPROCESS_PORT=10001
IP=10.0.1.102
_=/usr/bin/env
Start chronos:
mesos@0dcbf74a80c3:/opt$ /opt/chronos/bin/start-chronos.bash --master "zk://${ZOOKEEPER_ENDPOINTS}/mesos" --zk_hosts "zk://${ZOOKEEPER_ENDPOINTS}" --hostname ${IP}
Chronos home set to /opt/chronos
curl: (22) The requested URL returned error: 404 Not Found
Using jar file: /opt/chronos/target/chronos-2.3.4.jar[0]
[scallop] Error: Bad arguments for option 'hostname': '10.0.1.102 0dcbf74a80c3' - you should provide exactly one argument for this option
Any thoughts on that?
Jakub