-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Labels
area/dockerfilearea/feature-parityFeature parity with classic builderFeature parity with classic builderkind/bug
Milestone
Description
We use filtering via docker images --filter before=<image name> ... and after switch to Buildkit filtering broken due all layers with Dockerfile command like LABEL/WORKDIR/ARG now 292 years ago
Docker 18.09.0-ce + Ubuntu 16.04.3 LTS
docker version
Client:
Version: 18.09.0
API version: 1.39
Go version: go1.10.4
Git commit: 4d60db4
Built: Wed Nov 7 00:48:57 2018
OS/Arch: linux/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 18.09.0
API version: 1.39 (minimum version 1.12)
Go version: go1.10.4
Git commit: 4d60db4
Built: Wed Nov 7 00:16:44 2018
OS/Arch: linux/amd64
Experimental: false
Test Dockerfile:
FROM busybox:1
LABEL BUILD_TAG=1234
Log:
$ docker build -t test_default .
Sending build context to Docker daemon 2.048kB
Step 1/2 : FROM busybox:1
1: Pulling from library/busybox
57c14dd66db0: Pull complete
Digest: sha256:7964ad52e396a6e045c39b5a44438424ac52e12e4d5a25d94895f2058cb863a0
Status: Downloaded newer image for busybox:1
---> 3a093384ac30
Step 2/2 : LABEL BUILD_TAG=1234
---> Running in cc973201a797
Removing intermediate container cc973201a797
---> 4f40c5cff2b1
Successfully built 4f40c5cff2b1
Successfully tagged test_default:latest
$ docker history test_default
IMAGE CREATED CREATED BY SIZE COMMENT
4f40c5cff2b1 About a minute ago /bin/sh -c #(nop) LABEL BUILD_TAG=1234 0B
3a093384ac30 7 days ago /bin/sh -c #(nop) CMD ["sh"] 0B
<missing> 7 days ago /bin/sh -c #(nop) ADD file:7ba585d92672740a4… 1.2MB
$ DOCKER_BUILDKIT=1 docker build -t test_buildkit .
[+] Building 0.3s (5/5) FINISHED
[internal] load .dockerignore
transferring context: 2B
[internal] load build definition from Dockerfile
transferring dockerfile: 78B
[internal] load metadata for docker.io/library/busybox:1
[1/1] FROM docker.io/library/busybox:1
resolve docker.io/library/busybox:1
exporting to image
exporting layers
writing image ha256:c64e4fdbf58483e968c6c11c163b4be95cca1c443cb301acfbf90df45eb5b441
naming to docker.io/library/test_buildkit
$ docker history test_buildkit
IMAGE CREATED CREATED BY SIZE COMMENT
c64e4fdbf584 292 years ago LABEL BUILD_TAG=1234 0B buildkit.dockerfile.v0
<missing> 7 days ago /bin/sh -c #(nop) CMD ["sh"] 0B
<missing> 7 days ago /bin/sh -c #(nop) ADD file:7ba585d92672740a4… 1.2MB
looks like related to #253
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/dockerfilearea/feature-parityFeature parity with classic builderFeature parity with classic builderkind/bug