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

Cannot create docker image from DockerFile #754

Open
Hekatomb opened this issue May 31, 2024 · 1 comment
Open

Cannot create docker image from DockerFile #754

Hekatomb opened this issue May 31, 2024 · 1 comment

Comments

@Hekatomb
Copy link

Bug report

Description

Cannot build docker image from DockerFile because adduser is called before it is installed

Issue Description

When trying to build image from the DockerFile it fails due to missing program (adduser)

Error message :

 => ERROR [ 2/10] RUN adduser uvdesk -q --disabled-password --gecos ""                         0.5s
------
 > [ 2/10] RUN adduser uvdesk -q --disabled-password --gecos "":
0.484 /bin/sh: 1: adduser: not found

Preconditions

Please provide as detailed information about your environment as possible.

1. Any system
2. current master cbbb18356a65e107d03e47cbc2778a0983fe689c

Steps to reproduce

It is important to provide a set of clear steps to reproduce this bug.If relevant please include code samples.

1. $ git clone https://github.com/uvdesk/community-skeleton.git
2. $ cd community-skeleton
3. $ docker build -t uvdesk:uvdesk-current .

Expected result

....

Actual result

Error message :

 => ERROR [ 2/10] RUN adduser uvdesk -q --disabled-password --gecos ""                         0.5s
------
 > [ 2/10] RUN adduser uvdesk -q --disabled-password --gecos "":
0.484 /bin/sh: 1: adduser: not found

dockerpatch.patch

@rpatidar
Copy link

thanks for sharing the patch.

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