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

dockerBuildInit doesn't work #1545

Open
JMdoubleU opened this issue May 7, 2023 · 1 comment
Open

dockerBuildInit doesn't work #1545

JMdoubleU opened this issue May 7, 2023 · 1 comment
Labels
documentation Documentation should be extended or updated

Comments

@JMdoubleU
Copy link

Expected behavior

dockerBuildInit := true should build an image with tini as the entrypoint

Actual behavior

[error] unknown flag: --init
[error] See 'docker build --help'.
[error] java.lang.RuntimeException: Nonzero exit value: 125
[error] 	at com.typesafe.sbt.packager.docker.DockerPlugin$.publishLocalDocker(DockerPlugin.scala:691)

Information

--init is not and has never been an option for docker build - only docker run.

This is a duplicate of #1505 which was closed without any changes.

@dwickern
Copy link
Collaborator

dwickern commented May 8, 2023

I don't think we can make dockerBuildInit work as designed. There's no way for us to know which init is compatible with the base image.

If there's anything actionable here it would be:

  1. Change the documentation to recommend docker run --init or build-time code similar to Tini support for Docker images #1257 (comment)
  2. Deprecate or remove the dockerBuildInit option

@muuki88 muuki88 added the documentation Documentation should be extended or updated label Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Documentation should be extended or updated
Projects
None yet
Development

No branches or pull requests

3 participants