-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
dockerfile parse error unknown flag: start-interval
#4486
Comments
I just encountered the same issue. This feature has been been merged but not yet released. See moby/moby#40894: milestone is 25.0.0. |
Yes, this is currently expected if you use the default dockerfile syntax that's used by the docker 24.0 (and older) engine. The new option can be parsed by the latest version of the Dockerfile syntax (aka "frontend"), which has been released (and because of that docs are published) and you can make sure the latest syntax is used by adding a # syntax=docker/dockerfile:1
FROM yourimage:latest
# ... etc However, the option will not yet take effect on current versions of the docker engine. You can find more details in moby/moby#45897 (comment) I'll close this ticket, as this is currently expected, but feel free to continue the conversation 👍 |
Description
I have a Dockerfile that works fine, and after adding a HEALTHCHECK section almost identical that the one suggested in the official docs with the addition of the
--start-interval
flag, it does fail with the error:Reproduce
HEALTHCHECK
section as following, no issues so far after build again:HEALTHCHECK
adding thestart-interval
flag that the official documentation says it's supported:Expected behavior
This section in the docs states that the flag should work:
So the build should be successful in the step 5 as it is in the step 3.
docker version
Client: Docker Engine - Community Version: 24.0.5 API version: 1.43 Go version: go1.20.6 Git commit: ced0996 Built: Fri Jul 21 20:35:23 2023 OS/Arch: linux/amd64 Context: default Server: Docker Engine - Community Engine: Version: 24.0.5 API version: 1.43 (minimum version 1.12) Go version: go1.20.6 Git commit: a61e2b4 Built: Fri Jul 21 20:35:23 2023 OS/Arch: linux/amd64 Experimental: false containerd: Version: 1.6.22 GitCommit: 8165feabfdfe38c65b599c4993d227328c231fca runc: Version: 1.1.8 GitCommit: v1.1.8-0-g82f18fe docker-init: Version: 0.19.0 GitCommit: de40ad0
docker info
Additional Info
No response
The text was updated successfully, but these errors were encountered: