Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not access to container console #2115

Closed
yexingqi opened this issue Aug 2, 2018 · 3 comments
Closed

Can not access to container console #2115

yexingqi opened this issue Aug 2, 2018 · 3 comments
Labels
kind/question Questions on the platform

Comments

@yexingqi
Copy link

yexingqi commented Aug 2, 2018

Question:
How can I access to container console?

when I try to exec login with this container , it is always show me the wrong info below,
docker exec -it b2d76b3d56c8 /bin/bash
oci runtime error: exec failed: container_linux.go:265: starting container process caused "exec: "/bin/bash": stat /bin/bash: no such file or directory"

I want to exec into the container and add CA files and run the command " sudo /usr/sbin/update-ca-certificates"

thanks ~

@deviantony deviantony added the kind/question Questions on the platform label Aug 2, 2018
@deviantony
Copy link
Member

The Portainer docker image is based on scratch (actually portainer/base), there is no way to exec into this container.

If you want to achieve something similar, you'll need to build your own image based on something else like alpine for example.

Why do you need to execute this command? We already bundle the certs in the image, but might need to refresh it (https://github.com/portainer/docker-images/blob/master/base/Dockerfile).

@yexingqi
Copy link
Author

yexingqi commented Aug 3, 2018

@deviantony got it , thanks so much for the comment ~ let's me close this case now .

@linquize
Copy link
Contributor

linquize commented Dec 8, 2018

Also, some docker images only have /bin/sh, but not /bin/bash. You need to choose shell first (command combo box).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Questions on the platform
Projects
None yet
Development

No branches or pull requests

3 participants