-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web Console is not reachable by default From Container #4
Comments
@MMirabito Thanks for your feedback! We're currently using it with a docker-compose.yml like this:
This way, we overwrite |
@tholu, thanks so much for the the YML file really cool. Unfortunately it's not working on my Win 10 environment. I get the following message when I do
Maybe it's a win 10 quirk I tried to resolve it but not successful so far. I noticed that the Thanks again, `D:\Docker-Data\Apache-Active-MQ>docker-compose up ERROR: for 85964950b619_apache-active-mq_activemq_1 Cannot start service activemq: OCI runtime create failed: container_linux.go:370: starting container process caused: process_linux.go:459: container init caused: rootfs_linux.go:59: mounting "/run/desktop/mnt/host/d/Docker-Data/Apache-Active-MQ/conf/jetty.xml" to rootfs at "/var/lib/docker/overlay2/e3e618db4b7f36d54bff47bdb3436bab128960f2f5b7ac153f93d284e61d1a8d/merged/opt/apache-activemq-5.16.1/conf/jetty.xml" caused: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type ERROR: for activemq Cannot start service activemq: OCI runtime create failed: container_linux.go:370: starting container process caused: process_linux.go:459: container init caused: rootfs_linux.go:59: mounting "/run/desktop/mnt/host/d/Docker-Data/Apache-Active-MQ/conf/jetty.xml" to rootfs at "/var/lib/docker/overlay2/e3e618db4b7f36d54bff47bdb3436bab128960f2f5b7ac153f93d284e61d1a8d/merged/opt/apache-activemq-5.16.1/conf/jetty.xml" caused: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type |
@MMirabito You have to create a |
@tholu, thanks for clarifying it, I really feel clueless for some reason I was convinced that i would use the files from the docker container. It's working now thank again. max |
@tholu I am trying out your docker image as a "sandbox " for my development machine and I read the following:
Since 5.16.0 the Web Console is not reachable by default, as it only listens to 127.0.0.1 inside the container. See AMQ-8018 for more details.
Is the expectation that users of the image would manually implement what AMQ-8018 is saying.
Have you considered this approach (Editing files from dockerfile). By Adding the following line after your
RUN
command in the Dockerfile I was able to access the console via the browser.RUN sed -i "s|127.0.0.1|0.0.0.0|g" $ACTIVEMQ_HOME/conf/jetty.xml
I would be interested to know your take on this workaround for a "development" environment
Thanks in advance,
max
The text was updated successfully, but these errors were encountered: