Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
0d9a37d
oci: inheritable capability set should be empty
samuelkarp Jan 31, 2022
e444ac3
api: swagger: move Volume examples inline
thaJeztah Mar 5, 2022
5c0aae3
api: docs: move Volume examples inline (v1.39-v1.41)
thaJeztah Mar 5, 2022
0119f79
api: swagger: move VolumeCreateOptions to definitions
thaJeztah Mar 5, 2022
444b279
api: docs: move VolumeCreateOptions to definitions (v1.39-v1.41)
thaJeztah Mar 5, 2022
e4c6ca3
api: swagger: move ContainerWaitResponse to definitions
thaJeztah Mar 5, 2022
352d1bb
api: docs: move ContainerWaitResponse to definitions (v1.39-v1.41)
thaJeztah Mar 5, 2022
a456790
api: swagger: fix indentation of HostConfig.SecurityOpt
thaJeztah Mar 5, 2022
0759f01
api: docs: fix indentation of HostConfig.SecurityOpt (v1.39-v1.41)
thaJeztah Mar 5, 2022
a768652
Support STOPSIGNAL instruction in commit change
sestegra Mar 12, 2022
098a44c
Finish refactor of UID/GID usage to a new struct
corhere Mar 14, 2022
45067cd
client: remove wrapResponseError()
thaJeztah Mar 20, 2022
feab0cc
libnetwork/overlay:fix join sandbox deadlock
dojci Sep 12, 2021
a2aaf4c
vendor buildkit v0.10.0
crazy-max Mar 18, 2022
aadb3bf
builder: changes needed since buildkit 0.10.0
crazy-max Mar 23, 2022
b899db6
builder: enable shm-size and ulimit for buildkit
crazy-max Mar 17, 2022
fda0226
builder: add buildinfo for buildkit
crazy-max Mar 18, 2022
32f0561
ci: buildkit integration test
crazy-max Mar 22, 2022
ff35785
vendor buildkit 8d45bd6 that fixes dockerd worker integration tests
crazy-max Mar 22, 2022
8c7ea31
Mount (accessible) host devices in --privileged rootless containers
eliaskoromilas Dec 15, 2021
2bbc786
Merge pull request from GHSA-2mm7-x5h6-5pvq
thaJeztah Mar 23, 2022
8236be1
Merge pull request #43398 from thaJeztah/client_error_handling
cpuguy83 Mar 24, 2022
d967ffb
Merge pull request #42638 from eliaskoromilas/host-devices
thaJeztah Mar 24, 2022
56ea588
Merge pull request #43239 from crazy-max/buildkit-0.10
thaJeztah Mar 24, 2022
e69529c
update containerd binary to v1.6.2
thaJeztah Mar 24, 2022
ec221d6
vendor: github.com/containerd/containerd v1.6.2
thaJeztah Mar 24, 2022
7b277f6
Remove comment that is no longer relevant
rumpl Mar 24, 2022
94bb599
Merge pull request #43422 from rumpl/remove-os-index-comment
AkihiroSuda Mar 25, 2022
9a14f93
Merge pull request #43418 from thaJeztah/bump_containerd_1.6.2
thaJeztah Mar 25, 2022
4a26fdd
Merge pull request #43334 from thaJeztah/api_swagger_inline_examples
thaJeztah Mar 25, 2022
0a3336f
Merge pull request #43366 from corhere/finish-identitymapping-refactor
thaJeztah Mar 25, 2022
020fd68
daemon: graphdriver: some minor cleanup
thaJeztah Mar 14, 2022
3853eb5
daemon: require storage-driver to be set if the driver is deprecated
thaJeztah Mar 11, 2022
85572ca
registry: remove dependency on rootlesskit, add `SetCertsDir()`
thaJeztah Mar 25, 2022
19a7875
vendor: golang.org/x/sys v0.0.0-20220319134239-a9b59b0215f8
AkihiroSuda Mar 25, 2022
4d7ab4b
update RootlessKit to v1.0.0
AkihiroSuda Mar 25, 2022
ffd5d26
Merge pull request #43379 from evol262/overlay2-fix-deadlock
thaJeztah Mar 25, 2022
0729fbd
Merge pull request #43378 from thaJeztah/deprecate_storage_drivers
thaJeztah Mar 25, 2022
adf4bf7
API: add "Swarm" header to _ping endpoint
thaJeztah Feb 23, 2021
1e645fb
client: Ping(): add handling for swarm status headers
thaJeztah Mar 14, 2022
0707261
Merge pull request #43427 from AkihiroSuda/rootlesskit-1.0.0
thaJeztah Mar 25, 2022
aaf70b5
Merge pull request #42064 from thaJeztah/swarm_ping
thaJeztah Mar 26, 2022
1ad9a09
Merge pull request #43369 from sestegra/stop
thaJeztah Mar 26, 2022
8941dcf
Merge pull request #43428 from thaJeztah/prevent_rootlesskit_dependen…
thaJeztah Mar 26, 2022
d74bf97
vendor: github.com/moby/buildkit d7744bc
crazy-max Mar 27, 2022
88e1fec
Merge pull request #43432 from crazy-max/fix-buildkit-tests
thaJeztah Mar 27, 2022
62b7f09
Merge remote-tracking branch 'origin/master' into containerd-store
ndeloof Mar 29, 2022
749c755
build
ndeloof Mar 30, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
72 changes: 72 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,82 @@ jobs:
uses: docker/bake-action@v1
with:
targets: ${{ matrix.target }}
set: |
*.cache-from=type=gha,scope=build-${{ matrix.target }}
*.cache-to=type=gha,scope=build-${{ matrix.target }}
-
name: Upload build artifacts
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.target }}
path: ${{ env.BUNDLES_OUTPUT }}/${{ matrix.target }}-daemon/*
if-no-files-found: error

test-buildkit:
needs:
- build
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
pkg:
- ./client
- ./cmd/buildctl
- ./solver
- ./frontend
- ./frontend/dockerfile
typ:
- integration
include:
- pkg: ./...
skip-integration-tests: 1
steps:
-
name: Checkout
uses: actions/checkout@v3
with:
path: moby
-
name: BuildKit ref
run: |
./hack/go-mod-prepare.sh
echo "BUILDKIT_REF=$(./hack/buildkit-ref)" >> $GITHUB_ENV
working-directory: moby
-
name: Checkout BuildKit ${{ env.BUILDKIT_REF }}
uses: actions/checkout@v3
with:
repository: "moby/buildkit"
ref: ${{ env.BUILDKIT_REF }}
path: buildkit
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Download build artifacts
uses: actions/download-artifact@v2
with:
name: binary
path: ./buildkit/build/moby/
-
name: Update daemon.json
run: |
sudo rm /etc/docker/daemon.json
sudo service docker restart
docker version
docker info
-
name: Test
run: |
./hack/test ${{ matrix.typ }}
env:
CONTEXT: "."
TEST_DOCKERD: "1"
TEST_DOCKERD_BINARY: "./build/moby/dockerd"
TESTPKGS: "${{ matrix.pkg }}"
TESTFLAGS: "-v --parallel=1 --timeout=30m --run=//worker=dockerd$"
SKIP_INTEGRATION_TESTS: "${{ matrix.skip-integration-tests }}"
working-directory: buildkit
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ RUN mkdir -p hack \
ENTRYPOINT ["hack/dind-systemd"]

FROM dev-systemd-${SYSTEMD} AS dev
RUN GO111MODULE=on go install github.com/go-delve/delve/cmd/dlv@latest

FROM runtime-dev AS binary-base
ARG DOCKER_GITCOMMIT=HEAD
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.windows
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ FROM microsoft/windowsservercore
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]

ARG GO_VERSION=1.18.0
ARG CONTAINERD_VERSION=1.6.1
ARG CONTAINERD_VERSION=1.6.2
ARG GOTESTSUM_VERSION=v1.7.0

# Environment variable notes:
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ DOCKER_ENVS := \
-e DOCKER_GRAPHDRIVER \
-e DOCKER_LDFLAGS \
-e DOCKER_PORT \
-e DELVE_PORT \
-e DOCKER_REMAP_ROOT \
-e DOCKER_ROOTLESS \
-e DOCKER_STORAGE_OPTS \
Expand Down Expand Up @@ -114,8 +115,9 @@ DOCKER_CONTAINER_NAME := $(if $(CONTAINER_NAME),--name $(CONTAINER_NAME),)

DOCKER_IMAGE := docker-dev
DOCKER_PORT_FORWARD := $(if $(DOCKER_PORT),-p "$(DOCKER_PORT)",)
DELVE_PORT_FORWARD := $(if $(DELVE_PORT),-p "$(DELVE_PORT)",)

DOCKER_FLAGS := $(DOCKER) run --rm -i --privileged $(DOCKER_CONTAINER_NAME) $(DOCKER_ENVS) $(DOCKER_MOUNT) $(DOCKER_PORT_FORWARD)
DOCKER_FLAGS := $(DOCKER) run --rm -i --privileged $(DOCKER_CONTAINER_NAME) $(DOCKER_ENVS) $(DOCKER_MOUNT) $(DOCKER_PORT_FORWARD) $(DELVE_PORT_FORWARD)
BUILD_APT_MIRROR := $(if $(DOCKER_BUILD_APT_MIRROR),--build-arg APT_MIRROR=$(DOCKER_BUILD_APT_MIRROR))
export BUILD_APT_MIRROR

Expand Down
12 changes: 4 additions & 8 deletions api/server/backend/build/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,11 @@ func (b *Backend) Build(ctx context.Context, config backend.BuildConfig) (string
options := config.Options
useBuildKit := options.Version == types.BuilderBuildKit

tagger, err := NewTagger(b.imageComponent, config.ProgressWriter.StdoutFormatter, options.Tags)
if err != nil {
return "", err
}
var (
build *builder.Result
err error
)

var build *builder.Result
if useBuildKit {
build, err = b.buildkit.Build(ctx, config)
if err != nil {
Expand Down Expand Up @@ -92,9 +91,6 @@ func (b *Backend) Build(ctx context.Context, config backend.BuildConfig) (string
stdout := config.ProgressWriter.StdoutFormatter
fmt.Fprintf(stdout, "Successfully built %s\n", stringid.TruncateID(imageID))
}
if imageID != "" {
err = tagger.TagImages(ctx, image.ID(imageID))
}
return imageID, err
}

Expand Down
78 changes: 0 additions & 78 deletions api/server/backend/build/tag.go

This file was deleted.

5 changes: 5 additions & 0 deletions api/server/router/system/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,8 @@ type Backend interface {
type ClusterBackend interface {
Info() swarm.Info
}

// StatusProvider provides methods to get the swarm status of the current node.
type StatusProvider interface {
Status() string
}
13 changes: 13 additions & 0 deletions api/server/router/system/system_routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"github.com/docker/docker/api/types/events"
"github.com/docker/docker/api/types/filters"
"github.com/docker/docker/api/types/registry"
"github.com/docker/docker/api/types/swarm"
timetypes "github.com/docker/docker/api/types/time"
"github.com/docker/docker/api/types/versions"
"github.com/docker/docker/pkg/ioutils"
Expand All @@ -34,6 +35,9 @@ func (s *systemRouter) pingHandler(ctx context.Context, w http.ResponseWriter, r
if bv := builderVersion; bv != "" {
w.Header().Set("Builder-Version", string(bv))
}

w.Header().Set("Swarm", s.swarmStatus())

if r.Method == http.MethodHead {
w.Header().Set("Content-Type", "text/plain; charset=utf-8")
w.Header().Set("Content-Length", "0")
Expand All @@ -43,6 +47,15 @@ func (s *systemRouter) pingHandler(ctx context.Context, w http.ResponseWriter, r
return err
}

func (s *systemRouter) swarmStatus() string {
if s.cluster != nil {
if p, ok := s.cluster.(StatusProvider); ok {
return p.Status()
}
}
return string(swarm.LocalNodeStateInactive)
}

func (s *systemRouter) getInfo(ctx context.Context, w http.ResponseWriter, r *http.Request, vars map[string]string) error {
info, err := s.backend.SystemInfo(ctx)
if err != nil {
Expand Down
Loading