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

Unable to run command when building images based on bitnami/thanos #67861

Closed
RedbeanGit opened this issue Jun 13, 2024 · 4 comments
Closed

Unable to run command when building images based on bitnami/thanos #67861

RedbeanGit opened this issue Jun 13, 2024 · 4 comments
Assignees
Labels
solved stale 15 days without activity tech-issues The user has a technical issue about an application thanos triage Triage is needed

Comments

@RedbeanGit
Copy link

RedbeanGit commented Jun 13, 2024

Name and Version

bitnami/thanos:0.35.1-debian-12-r1

What architecture are you using?

None

What steps will reproduce the bug?

  1. Create any Dockerfile based on bitnami/thanos image which needs to run a command:
FROM bitnami/thanos:0.35.1-debian-12-r1

RUN echo "This is a command that will fail"
  1. Try to build the image:
docker build -t mythanos .
  1. See the following error showing: unable to find user 1001: invalid argument

What is the expected behavior?

Docker should be able to find the user 1001 and run commands at build time using the default user.

What do you see instead?

Build error:

------
 > [2/2] RUN echo "This is a command that will fail":
------
Dockerfile:3
--------------------
   1 |     FROM bitnami/thanos:0.35.1-debian-12-r1
   2 |
   3 | >>> RUN echo "This is a command that will fail"
   4 |
--------------------
ERROR: failed to solve: process "/bin/sh -c echo \"This is a command that will fail\"" did not complete successfully: unable to find user 1001: invalid argument

I also tested with root user using USER root clause but it fails too.

@RedbeanGit RedbeanGit added the tech-issues The user has a technical issue about an application label Jun 13, 2024
@github-actions github-actions bot added the triage Triage is needed label Jun 13, 2024
@carrodher
Copy link
Member

Note that bitnami/thanos is a scratch -an explicitly empty- container image. There are some applications, like Thanos, consisting of a single binary that doesn't need to have a fully operational distro.

@RedbeanGit
Copy link
Author

Note that bitnami/thanos is a scratch -an explicitly empty- container image. There are some applications, like Thanos, consisting of a single binary that doesn't need to have a fully operational distro.

Is it linked to the "user not found" error I'm seeing?
Scratch based image don't have any user?

Thanks in advance.

Copy link

github-actions bot commented Jul 9, 2024

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

@github-actions github-actions bot added the stale 15 days without activity label Jul 9, 2024
Copy link

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

@bitnami-bot bitnami-bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solved stale 15 days without activity tech-issues The user has a technical issue about an application thanos triage Triage is needed
Projects
None yet
Development

No branches or pull requests

3 participants