Skip to content
This repository was archived by the owner on Oct 11, 2023. It is now read-only.
This repository was archived by the owner on Oct 11, 2023. It is now read-only.

Cannot run docker topon user containers. #2340

@bribass

Description

@bribass

RancherOS Version: (ros os version) v1.3.0

Where are you running RancherOS? (docker-machine, AWS, GCE, baremetal, etc.) bare metal

It is not possible to run docker top to see what processes are running inside a non-system container.

rancher@gamma:~$ docker run -dt alpine cat
5f319428bd574629f847b659df0209345ae78200264376b5612a58c8632fba1
rancher@gamma:~$ docker top 5f319428bd57
Error response from daemon: Error running ps: exec: "ps": executable file not found in $PATH

Note that I can successfully run sudo system-docker top docker, which implies that there's a ps executable available to the system, but not to user-docker.

This makes it so that my Jenkins pipelines (that I'm trying to move to this new ROS box) will not be able to run their docker.image().inside {} steps. (Jenkins is using this container start with cat, using top to check that it started, and then running commands in this container with exec calls.)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions