<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/docker.git/api/server/backend, branch master</title>
<subtitle>github.com: dotcloud/docker.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/docker.git/'/>
<entry>
<title>Use the image service instead of the reference store for tagging</title>
<updated>2023-04-26T13:10:01+00:00</updated>
<author>
<name>Djordje Lukic</name>
<email>djordje.lukic@docker.com</email>
</author>
<published>2023-04-26T11:48:50+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/docker.git/commit/?id=a1e103873633fdce82fcb3edf54242ea85a5f3aa'/>
<id>a1e103873633fdce82fcb3edf54242ea85a5f3aa</id>
<content type='text'>
The image store sends events when a new image is created/tagged, using
it instead of the reference store makes sure we send the "tag" event
when a new image is built using buildx.

Signed-off-by: Djordje Lukic &lt;djordje.lukic@docker.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The image store sends events when a new image is created/tagged, using
it instead of the reference store makes sure we send the "tag" event
when a new image is built using buildx.

Signed-off-by: Djordje Lukic &lt;djordje.lukic@docker.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge pull request #44510 from thaJeztah/api_server_sanitizeRepoAndTags</title>
<updated>2023-04-12T20:10:52+00:00</updated>
<author>
<name>Sebastiaan van Stijn</name>
<email>thaJeztah@users.noreply.github.com</email>
</author>
<published>2023-04-12T20:10:52+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/docker.git/commit/?id=49fa3d82b75749a96fdb4bbc2092d9495b9dfdd9'/>
<id>49fa3d82b75749a96fdb4bbc2092d9495b9dfdd9</id>
<content type='text'>
api/server/backend/build: sanitizeRepoAndTags() check for digest</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
api/server/backend/build: sanitizeRepoAndTags() check for digest</pre>
</div>
</content>
</entry>
<entry>
<title>daemon/imageService: Remove TagImageWithReference</title>
<updated>2023-02-07T14:43:52+00:00</updated>
<author>
<name>Paweł Gronowski</name>
<email>pawel.gronowski@docker.com</email>
</author>
<published>2023-01-10T13:29:40+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/docker.git/commit/?id=1ca85e835cf55c78ee58b77f02841111b0744878'/>
<id>1ca85e835cf55c78ee58b77f02841111b0744878</id>
<content type='text'>
TagImage is just a wrapper for TagImageWithReference which parses the
repo and tag into a reference. Change TagImageWithReference into
TagImage and move the responsibility of reference parsing to caller.

Signed-off-by: Paweł Gronowski &lt;pawel.gronowski@docker.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
TagImage is just a wrapper for TagImageWithReference which parses the
repo and tag into a reference. Change TagImageWithReference into
TagImage and move the responsibility of reference parsing to caller.

Signed-off-by: Paweł Gronowski &lt;pawel.gronowski@docker.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>daemon: Pass ctx to image tagging operations</title>
<updated>2023-02-07T14:43:48+00:00</updated>
<author>
<name>Nicolas De Loof</name>
<email>nicolas.deloof@gmail.com</email>
</author>
<published>2022-07-11T08:58:39+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/docker.git/commit/?id=7b6f71dced5b2cf69bb4b645ef090b88b86742f6'/>
<id>7b6f71dced5b2cf69bb4b645ef090b88b86742f6</id>
<content type='text'>
Signed-off-by: Nicolas De Loof &lt;nicolas.deloof@gmail.com&gt;
Signed-off-by: Paweł Gronowski &lt;pawel.gronowski@docker.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Nicolas De Loof &lt;nicolas.deloof@gmail.com&gt;
Signed-off-by: Paweł Gronowski &lt;pawel.gronowski@docker.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>api/server/backend/build: sanitizeRepoAndTags() check for digest</title>
<updated>2022-11-24T09:08:08+00:00</updated>
<author>
<name>Sebastiaan van Stijn</name>
<email>github@gone.nl</email>
</author>
<published>2022-11-14T18:15:55+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/docker.git/commit/?id=4769809555d940a27c6a15586a3b340d5a55a38f'/>
<id>4769809555d940a27c6a15586a3b340d5a55a38f</id>
<content type='text'>
The reference.ParseNormalizedNamed() utility already returns a Named
reference, but we're interested in wether the digest has a digest, so
check for that.

Signed-off-by: Sebastiaan van Stijn &lt;github@gone.nl&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The reference.ParseNormalizedNamed() utility already returns a Named
reference, but we're interested in wether the digest has a digest, so
check for that.

Signed-off-by: Sebastiaan van Stijn &lt;github@gone.nl&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>api/server/backend/build: remove Tagger and NewTagger</title>
<updated>2022-09-07T18:36:00+00:00</updated>
<author>
<name>Sebastiaan van Stijn</name>
<email>github@gone.nl</email>
</author>
<published>2022-09-07T18:36:00+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/docker.git/commit/?id=ff81dc3544b018a85a7bad4d8934fe41cb3276ea'/>
<id>ff81dc3544b018a85a7bad4d8934fe41cb3276ea</id>
<content type='text'>
The Tagger was introduced in 0296797f0f39477d675128c93c1646b3186937ee, as part
of a refactor, but was never used outside of the package itself. The commit
also didn't explain why this was changed into a Type with a constructor, as all
the constructor appears to be used for is to sanitize and validate the tags.

This patch removes the `Tagger` struct and its constructor, and instead just
uses a function to do the same.

Signed-off-by: Sebastiaan van Stijn &lt;github@gone.nl&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The Tagger was introduced in 0296797f0f39477d675128c93c1646b3186937ee, as part
of a refactor, but was never used outside of the package itself. The commit
also didn't explain why this was changed into a Type with a constructor, as all
the constructor appears to be used for is to sanitize and validate the tags.

This patch removes the `Tagger` struct and its constructor, and instead just
uses a function to do the same.

Signed-off-by: Sebastiaan van Stijn &lt;github@gone.nl&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>API: add "prune" events</title>
<updated>2020-07-28T10:41:14+00:00</updated>
<author>
<name>Sebastiaan van Stijn</name>
<email>github@gone.nl</email>
</author>
<published>2020-07-25T12:14:38+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/docker.git/commit/?id=51c7992928fb83ecfb4b62fc6cd51c76090e3042'/>
<id>51c7992928fb83ecfb4b62fc6cd51c76090e3042</id>
<content type='text'>
This patch adds a new "prune" event type to indicate that pruning of a resource
type completed.

This event-type can be used on systems that want to perform actions after
resources have been cleaned up. For example, Docker Desktop performs an fstrim
after resources are deleted (https://github.com/linuxkit/linuxkit/tree/v0.7/pkg/trim-after-delete).

While the current (remove, destroy) events can provide information on _most_
resources, there is currently no event triggered after the BuildKit build-cache
is cleaned.

Prune events have a `reclaimed` attribute, indicating the amount of space that
was reclaimed (in bytes). The attribute can be used, for example, to use as a
threshold for performing fstrim actions. Reclaimed space for `network` events
will always be 0, but the field is added to be consistent with prune events for
other resources.

To test this patch:

Create some resources:

    for i in foo bar baz; do \
        docker network create network_$i \
        &amp;&amp; docker volume create volume_$i \
        &amp;&amp; docker run -d --name container_$i -v volume_$i:/volume busybox sh -c 'truncate -s 5M somefile; truncate -s 5M /volume/file' \
        &amp;&amp; docker tag busybox:latest image_$i; \
    done;

    docker pull alpine
    docker pull nginx:alpine

    echo -e "FROM busybox\nRUN truncate -s 50M bigfile" | DOCKER_BUILDKIT=1 docker build -

Start listening for "prune" events in another shell:

    docker events --filter event=prune

Prune containers, networks, volumes, and build-cache:

    docker system prune -af --volumes

See the events that are returned:

    docker events --filter event=prune
    2020-07-25T12:12:09.268491000Z container prune  (reclaimed=15728640)
    2020-07-25T12:12:09.447890400Z network prune  (reclaimed=0)
    2020-07-25T12:12:09.452323000Z volume prune  (reclaimed=15728640)
    2020-07-25T12:12:09.517236200Z image prune  (reclaimed=21568540)
    2020-07-25T12:12:09.566662600Z builder prune  (reclaimed=52428841)

Signed-off-by: Sebastiaan van Stijn &lt;github@gone.nl&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch adds a new "prune" event type to indicate that pruning of a resource
type completed.

This event-type can be used on systems that want to perform actions after
resources have been cleaned up. For example, Docker Desktop performs an fstrim
after resources are deleted (https://github.com/linuxkit/linuxkit/tree/v0.7/pkg/trim-after-delete).

While the current (remove, destroy) events can provide information on _most_
resources, there is currently no event triggered after the BuildKit build-cache
is cleaned.

Prune events have a `reclaimed` attribute, indicating the amount of space that
was reclaimed (in bytes). The attribute can be used, for example, to use as a
threshold for performing fstrim actions. Reclaimed space for `network` events
will always be 0, but the field is added to be consistent with prune events for
other resources.

To test this patch:

Create some resources:

    for i in foo bar baz; do \
        docker network create network_$i \
        &amp;&amp; docker volume create volume_$i \
        &amp;&amp; docker run -d --name container_$i -v volume_$i:/volume busybox sh -c 'truncate -s 5M somefile; truncate -s 5M /volume/file' \
        &amp;&amp; docker tag busybox:latest image_$i; \
    done;

    docker pull alpine
    docker pull nginx:alpine

    echo -e "FROM busybox\nRUN truncate -s 50M bigfile" | DOCKER_BUILDKIT=1 docker build -

Start listening for "prune" events in another shell:

    docker events --filter event=prune

Prune containers, networks, volumes, and build-cache:

    docker system prune -af --volumes

See the events that are returned:

    docker events --filter event=prune
    2020-07-25T12:12:09.268491000Z container prune  (reclaimed=15728640)
    2020-07-25T12:12:09.447890400Z network prune  (reclaimed=0)
    2020-07-25T12:12:09.452323000Z volume prune  (reclaimed=15728640)
    2020-07-25T12:12:09.517236200Z image prune  (reclaimed=21568540)
    2020-07-25T12:12:09.566662600Z builder prune  (reclaimed=52428841)

Signed-off-by: Sebastiaan van Stijn &lt;github@gone.nl&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>builder: remove legacy build's session handling</title>
<updated>2019-10-02T20:29:15+00:00</updated>
<author>
<name>Tibor Vass</name>
<email>tibor@docker.com</email>
</author>
<published>2019-09-24T21:37:38+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/docker.git/commit/?id=6ca3ec88ae9e1435abbed665ec598c00058659da'/>
<id>6ca3ec88ae9e1435abbed665ec598c00058659da</id>
<content type='text'>
This feature was used by docker build --stream and it was kept experimental.

Users of this endpoint should enable BuildKit anyway by setting Version to BuilderBuildKit.

Signed-off-by: Tibor Vass &lt;tibor@docker.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This feature was used by docker build --stream and it was kept experimental.

Users of this endpoint should enable BuildKit anyway by setting Version to BuilderBuildKit.

Signed-off-by: Tibor Vass &lt;tibor@docker.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>build: fix panic when exporting to tar</title>
<updated>2019-06-03T22:34:15+00:00</updated>
<author>
<name>Tibor Vass</name>
<email>tibor@docker.com</email>
</author>
<published>2019-06-03T22:34:13+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/docker.git/commit/?id=6104eb1ae2890371ef0f7440514ee505d73d2c0a'/>
<id>6104eb1ae2890371ef0f7440514ee505d73d2c0a</id>
<content type='text'>
Fixes a panic on `docker build -t foo -o - . &gt;/dev/null`

Signed-off-by: Tibor Vass &lt;tibor@docker.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes a panic on `docker build -t foo -o - . &gt;/dev/null`

Signed-off-by: Tibor Vass &lt;tibor@docker.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>grpc: register BuildKit controller to /grpc</title>
<updated>2019-04-02T19:57:59+00:00</updated>
<author>
<name>Tibor Vass</name>
<email>tibor@docker.com</email>
</author>
<published>2019-04-02T04:08:51+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/docker.git/commit/?id=05c5d20a2cd8b2073901828b83deaa493220bce6'/>
<id>05c5d20a2cd8b2073901828b83deaa493220bce6</id>
<content type='text'>
Signed-off-by: Tibor Vass &lt;tibor@docker.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Tibor Vass &lt;tibor@docker.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
