Can't access apache karaf docker container

0 votes

I have a apache karaf dockerfile but when I try to access it or enter it, it won't let me in

[root@HNHC9F2 docker_file]# docker exec -it b8587543289b /opt/karaf/bin/karaf

karaf: There is a Root instance already running with name root and pid 132. If you know what you are doing and want to force the run anyway, export CHECK_ROOT_INSTANCE_RUNNING=false and re run the command.

Apr 29, 2018 in Docker by Atul
• 5,470 points
129 views

2 answers to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

I think you should export the environment variable CHECK_ROOT_INSTANCE_RUNNING:

docker exec -it b8587543289b bash 
export CHECK_ROOT_INSTANCE_RUNNING=false
exit

docker exec -it b8587543289b /opt/karaf/bin/karaf

and if all you need is to insert a shell inside the container you can use this

docker exec -it b8587543289b bash
answered Apr 29, 2018 by ajs3033
• 7,000 points
0 votes

To access karaf shell directly you can use following command

docker exec -it b8586730289b /opt/apache/karaf/bin/client
answered Aug 6, 2018 by Nilesh
• 6,900 points

Related Questions In Docker

+4 votes
4 answers

How To Access a Service on Host From a Docker Container?

Adding to kalgi's answer, You can also ...READ MORE

answered Oct 16, 2018 in Docker by lina
• 8,100 points

edited Oct 16, 2018 by lina 1,900 views
0 votes
1 answer

Access IP address of Couchbase container on Docker Swarm cluster

The property .NetworkSettings.Ports is a map, not a struct. ...READ MORE

answered Aug 24, 2018 in Docker by Nilesh
• 6,900 points
39 views
0 votes
1 answer

Error: Cannot access server in docker container

Try to publish your port: docker run -p ...READ MORE

answered Sep 6, 2018 in Docker by Tyrion anex
• 8,280 points
28 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,100 points
56 views
0 votes
1 answer

Preferred method for Docker File Versioning

Use labels to add versioning information to ...READ MORE

answered Jun 11, 2018 in Docker by ajs3033
• 7,000 points
57 views
0 votes
1 answer

Unable to switch filesystem to overlay in Docker in Ubuntu.

From the official docs: https://docs.docker.com/engine/userguide/storagedriver/overlayfs-driver/#configure-docker-with-the-overlayoverlay2-storage-driver To configure Docker ...READ MORE

answered Jul 18, 2018 in Docker by ajs3033
• 7,000 points
335 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.