Skip to content

Exec Console: No bash in some containers #263

@snoozer

Description

@snoozer

Hi,

I have tried to use Portainer to access the CLI of the Mosquitto Container without success. I have left the defaults /bin/bash and root. This flickered a black background very quick and brought me beck to where I started. Since I did not see any error message I tried the CLI approach on the host system.

docker exec -it mosquitto /bin/bash

This gave me the following error:
OCI runtime exec failed: exec failed: container_linux.go:370: starting container process caused: exec: "/bin/bash": stat /bin/bash: no such file or directory: unknown

Using /bin/sh instead of /bin/bash then worked, is that intended not to have a bash in the container or is that an oversight ? Is there a way that I can add the bash ?

I have noticed the same issue in the Adminer container as well.

Kind Regards
Jan P.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions