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

useradd command not found in CBL Mariner 2.0 despite existing in 1.0 #3239

Closed
mpwillia opened this issue Jun 24, 2022 · 2 comments
Closed

useradd command not found in CBL Mariner 2.0 despite existing in 1.0 #3239

mpwillia opened this issue Jun 24, 2022 · 2 comments

Comments

@mpwillia
Copy link

mpwillia commented Jun 24, 2022

While migrating to mariner images I found that the useradd command is not available in the base CBL Mariner 2.0 image despite being available in the 1.0 image.

In 1.0 I observe the following.

> docker run -it --entrypoint /bin/bash mcr.microsoft.com/cbl-mariner/base/core:1.0
root [ / ]# useradd
Usage: useradd [options] LOGIN
       useradd -D
       useradd -D [options]

... truncated useradd help page ...

While in 2.0 I observe the following.

> docker run -it --entrypoint /bin/bash mcr.microsoft.com/cbl-mariner/base/core:2.0
root [ / ]# useradd
bash: useradd: command not found

I expected the useradd command to exist regardless of which version I used.

@PawelWMS
Copy link
Contributor

There is no backward compatibility between 2.0 and 1.0, so it is possible that the shadow-utils package in not part of the base image anymore. You can still install it, if needed.

@mpwillia
Copy link
Author

mpwillia commented Jun 24, 2022

it is possible that the shadow-utils package in not part of the base image anymore. You can still install it, if needed.

Ah perfect, it wasn't clear to me that useradd was coming from shadow-utils being preinstalled in 1.0.
Installing the package will work perfectly fine for my use case. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants