Skip to content

improve error message when passwd not part of container image #181

Open
@miabbott

Description

When a user specifies a different container image to use (via --image), it may not include the passwd utility which is required for toolbox operation. In this scenario, the error message looks like this:

...
toolbox: trying to create working container toolbox-working-container-698c302c-821d-11e9-90b1-d2844349e413 
toolbox: trying to configure working container toolbox-working-container-698c302c-821d-11e9-90b1-d2844349e413
error running container: error creating container for [passwd -d miabbott]: container_linux.go:345: starting container process caused "exec: \"passwd\": executable file not found in $PATH"
: exit status 1
error while running runtime: exit status 1
ERRO[0000] exit status 1                                 
toolbox: failed to remove password for user miabbott

This isn't very intuitive to the end user about what is the nature of the problem.

toolbox should be able to test the container image for required dependencies before attempting to create a container to work within, then error out with a clearer message.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    1. BugSomething isn't working4. InvalidThis doesn't seem right5. Help WantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions