SSH and enter Docker container

ssh
docker

#1

Hi, I’m trying to debug a job running in a Docker container.

If i SSH, I’m the root user in a (presumably) busybox container. What’s for sure is that I’m not in the same image as the one described in the config. There’s also no docker binary.

Is there a way in which I can enter/launch the actual container I want to debug?


#2

When you say you’re using Docker, are you running that in the docker: key, or have you installed Docker in your build system and are effectively running Docker-in-Docker?


#3

Using the docker key.


#4

Is it the first image in the docker key? If so, then when you SSH, you are inside the container of that image. There is no Docker inside a Docker container by default, unless you install it deliberately.


#5

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.