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 ffdfd
• 5,550 points
2,531 views

2 answers to this question.

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,300 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
• 7,060 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,220 points

edited Oct 16, 2018 by lina 34,145 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
• 7,060 points
1,014 views
0 votes
1 answer

Error: Cannot access server in docker container

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

answered Sep 7, 2018 in Docker by Tyrion anex
• 8,700 points
1,067 views
0 votes
1 answer
+2 votes
1 answer
+2 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
• 58,020 points
2,720 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,300 points
1,420 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,300 points
2,865 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP