Reputation: 3026
I'm trying to SSH into my running Jenkins VM which I have created with a Dockerfile.
I need to see the filestructure and copy the /var/lib/jenkins folder out to my shared folder.
How do I achieve getting into the VM?
Upvotes: 1
Views: 321
Reputation: 32216
Do not use SSH, simply a docker exec -it your_container bash
and then issue the commands you want. See the doc https://docs.docker.com/reference/commandline/cli/#exec and if you have an old verison of docker use nsenter https://github.com/jpetazzo/nsenter
Upvotes: 4