Skip to content

Conversation

@chendave
Copy link
Collaborator

@chendave chendave commented Mar 20, 2019

Run this command:
docker build -f ./hack/dockerfiles/test.Dockerfile --target integration-tests
will throw this error message:
`Executing busybox-1.29.3-r10.trigger OK: 184 MiB in 43 packages

Creating mailbox file: No such file or directory`

Not impact functionality but a little bit annoying.

Signed-off-by: Dave Chen [email protected]

@tonistiigi
Copy link
Member

SGTM

FROM buildkit-base AS integration-tests
ENV BUILDKIT_INTEGRATION_ROOTLESS_IDPAIR="1000:1000"
RUN apk add --no-cache shadow shadow-uidmap sudo \
&& [ -d /var/mail ] || mkdir /var/mail \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: mkdir -p /var/mail ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both are okay I think, "/var" is there, no need "-p" option here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-p allows skipping [ -d /var/mail ] check

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other approach can be found here; docker/cli#1728

/cc @ijc

Run this command:
`docker build --tag davetest -f ./hack/dockerfiles/test.Dockerfile --target integration-tests`
Will throw this error message:
`Executing busybox-1.29.3-r10.trigger
OK: 184 MiB in 43 packages
Creating mailbox file: No such file or directory`

Not impact functionality but a little bit annoying.

Signed-off-by: Dave Chen <[email protected]>
@tonistiigi tonistiigi merged commit 3cf36fe into moby:master Mar 30, 2019
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

Successfully merging this pull request may close these issues.

4 participants