Gibbs
Gibbs

Reputation: 22964

Docker in debugging mode

I have flume, hdfs container running in boot2docker. I have java code under my /c/users/ directory which is automatically mounted by boot2docker[According to docs].

I copied required jars into running container instead mounting the volume using -v flag. Now i want to debug my code inside the running container.

How do i achieve this? Do i need to mount this and then run the container with debug mode? how do i do this? If any steps or example, then it would be really helpful

Any suggestions?

Upvotes: 0

Views: 703

Answers (1)

user2915097
user2915097

Reputation: 32176

Use docker exec -ti container /bin/bash to open a terminal in your container, check the dock https://docs.docker.com/reference/commandline/cli/#exec

Upvotes: 2

Related Questions