SSH and enter Docker container



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?


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?


Using the docker key.


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.


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