Move container to daemon/container

Signed-off-by: Derek McGowan <derek@mcg.dev>
This commit is contained in:
Derek McGowan
2025-06-27 14:27:21 -07:00
parent a02ba3c7df
commit 5419eb1efc
117 changed files with 95 additions and 95 deletions

View File

@@ -8,7 +8,7 @@ import (
"strconv"
"strings"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/errdefs"
"github.com/moby/go-archive"
"github.com/moby/sys/user"

View File

@@ -10,7 +10,7 @@ import (
containertypes "github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/events"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/errdefs"
"github.com/docker/docker/pkg/ioutils"
volumemounts "github.com/docker/docker/volume/mounts"

View File

@@ -8,7 +8,7 @@ import (
containertypes "github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/events"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/errdefs"
"github.com/docker/docker/pkg/ioutils"
"github.com/moby/go-archive"

View File

@@ -9,7 +9,7 @@ import (
"github.com/docker/docker/api/types/backend"
containertypes "github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/events"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/daemon/internal/stream"
"github.com/docker/docker/daemon/logger"
"github.com/docker/docker/errdefs"

View File

@@ -10,8 +10,8 @@ import (
containertypes "github.com/docker/docker/api/types/container"
eventtypes "github.com/docker/docker/api/types/events"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/daemon/events"
"github.com/moby/swarmkit/v2/api"
)

View File

@@ -12,8 +12,8 @@ import (
containertypes "github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/mount"
networktypes "github.com/docker/docker/api/types/network"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/config"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/daemon/network"
"github.com/docker/docker/errdefs"
"github.com/docker/docker/image"

View File

@@ -3,7 +3,7 @@
package daemon
import (
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/errdefs"
)

View File

@@ -18,8 +18,8 @@ import (
containertypes "github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/events"
networktypes "github.com/docker/docker/api/types/network"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/config"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/daemon/internal/metrics"
"github.com/docker/docker/daemon/network"
"github.com/docker/docker/errdefs"

View File

@@ -6,7 +6,7 @@ import (
containertypes "github.com/docker/docker/api/types/container"
networktypes "github.com/docker/docker/api/types/network"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/libnetwork"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"

View File

@@ -12,8 +12,8 @@ import (
"syscall"
"github.com/containerd/log"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/config"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/daemon/links"
"github.com/docker/docker/daemon/network"
"github.com/docker/docker/errdefs"

View File

@@ -6,8 +6,8 @@ import (
"os"
"github.com/containerd/log"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/config"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/daemon/network"
"github.com/docker/docker/libnetwork"
"github.com/docker/docker/pkg/system"

View File

@@ -1,7 +1,7 @@
package daemon
import (
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
)
func (daemon *Daemon) saveAppArmorConfig(container *container.Container) error {

View File

@@ -16,7 +16,7 @@ import (
"github.com/containerd/containerd/v2/core/snapshots"
"github.com/containerd/containerd/v2/defaults"
cerrdefs "github.com/containerd/errdefs"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
daemonevents "github.com/docker/docker/daemon/events"
"github.com/opencontainers/go-digest"
ocispec "github.com/opencontainers/image-spec/specs-go/v1"

View File

@@ -6,7 +6,7 @@ import (
"github.com/containerd/containerd/v2/core/mount"
"github.com/containerd/log"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/pkg/stringid"
"github.com/moby/go-archive"
)

View File

@@ -16,7 +16,7 @@ import (
"github.com/distribution/reference"
"github.com/docker/docker/api/types/events"
imagetypes "github.com/docker/docker/api/types/image"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
dimages "github.com/docker/docker/daemon/images"
"github.com/docker/docker/daemon/internal/metrics"
"github.com/docker/docker/image"

View File

@@ -9,7 +9,7 @@ import (
"github.com/containerd/containerd/v2/pkg/namespaces"
"github.com/containerd/log/logtest"
"github.com/docker/docker/api/types/image"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
daemonevents "github.com/docker/docker/daemon/events"
dimages "github.com/docker/docker/daemon/images"
"gotest.tools/v3/assert"

View File

@@ -16,7 +16,7 @@ import (
"github.com/containerd/log/logtest"
"github.com/containerd/platforms"
imagetypes "github.com/docker/docker/api/types/image"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/internal/testutils/specialimage"
"github.com/opencontainers/go-digest"
ocispec "github.com/opencontainers/image-spec/specs-go/v1"

View File

@@ -13,7 +13,7 @@ import (
"github.com/distribution/reference"
"github.com/docker/docker/api/types/filters"
"github.com/docker/docker/api/types/image"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/errdefs"
"github.com/hashicorp/go-multierror"
"github.com/opencontainers/go-digest"

View File

@@ -11,7 +11,7 @@ import (
"github.com/containerd/containerd/v2/core/snapshots"
cerrdefs "github.com/containerd/errdefs"
"github.com/containerd/log"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/daemon/snapshotter"
"github.com/docker/docker/errdefs"
"github.com/docker/docker/image"

View File

@@ -14,7 +14,7 @@ import (
cerrdefs "github.com/containerd/errdefs"
"github.com/containerd/log"
"github.com/containerd/platforms"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
daemonevents "github.com/docker/docker/daemon/events"
dimages "github.com/docker/docker/daemon/images"
"github.com/docker/docker/daemon/snapshotter"

View File

@@ -3,7 +3,7 @@
package containerd
import (
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/errdefs"
"github.com/docker/docker/image"
"github.com/pkg/errors"

View File

@@ -4,7 +4,7 @@ import (
"context"
"fmt"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/image"
"github.com/pkg/errors"
)

View File

@@ -16,7 +16,7 @@ import (
"golang.org/x/sys/unix"
containertypes "github.com/docker/docker/api/types/container"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/internal/mounttree"
"github.com/docker/docker/internal/unshare"
"github.com/docker/docker/pkg/fileutils"

View File

@@ -18,8 +18,8 @@ import (
containertypes "github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/events"
networktypes "github.com/docker/docker/api/types/network"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/config"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/daemon/images"
"github.com/docker/docker/daemon/internal/metrics"
"github.com/docker/docker/errdefs"

View File

@@ -12,7 +12,7 @@ import (
"github.com/containerd/log"
containertypes "github.com/docker/docker/api/types/container"
mounttypes "github.com/docker/docker/api/types/mount"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/oci"
"github.com/docker/docker/pkg/idtools"
volumemounts "github.com/docker/docker/volume/mounts"

View File

@@ -5,7 +5,7 @@ import (
"fmt"
containertypes "github.com/docker/docker/api/types/container"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
volumemounts "github.com/docker/docker/volume/mounts"
volumeopts "github.com/docker/docker/volume/service/opts"
)

View File

@@ -39,9 +39,9 @@ import (
"github.com/docker/docker/api/types/swarm"
volumetypes "github.com/docker/docker/api/types/volume"
"github.com/docker/docker/builder"
"github.com/docker/docker/container"
executorpkg "github.com/docker/docker/daemon/cluster/executor"
"github.com/docker/docker/daemon/config"
"github.com/docker/docker/daemon/container"
ctrd "github.com/docker/docker/daemon/containerd"
"github.com/docker/docker/daemon/events"
_ "github.com/docker/docker/daemon/graphdriver/register" // register graph drivers

View File

@@ -9,7 +9,7 @@ import (
cerrdefs "github.com/containerd/errdefs"
containertypes "github.com/docker/docker/api/types/container"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/libnetwork"
"github.com/docker/docker/pkg/idtools"
volumesservice "github.com/docker/docker/volume/service"

View File

@@ -26,8 +26,8 @@ import (
"github.com/docker/docker/api/types/blkiodev"
containertypes "github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/network"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/config"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/daemon/initlayer"
"github.com/docker/docker/errdefs"
"github.com/docker/docker/internal/nlwrap"

View File

@@ -10,8 +10,8 @@ import (
"github.com/docker/docker/api/types/blkiodev"
containertypes "github.com/docker/docker/api/types/container"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/config"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/pkg/sysinfo"
"github.com/opencontainers/selinux/go-selinux"
"golang.org/x/sys/unix"

View File

@@ -14,8 +14,8 @@ import (
"github.com/containerd/log"
containertypes "github.com/docker/docker/api/types/container"
networktypes "github.com/docker/docker/api/types/network"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/config"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/daemon/network"
"github.com/docker/docker/libcontainerd/local"
"github.com/docker/docker/libcontainerd/remote"

View File

@@ -12,8 +12,8 @@ import (
"github.com/docker/docker/api/types/backend"
containertypes "github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/events"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/config"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/daemon/internal/metrics"
"github.com/docker/docker/errdefs"
"github.com/docker/docker/internal/containerfs"

View File

@@ -9,7 +9,7 @@ import (
cerrdefs "github.com/containerd/errdefs"
"github.com/docker/docker/api/types/backend"
containertypes "github.com/docker/docker/api/types/container"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)

View File

@@ -9,7 +9,7 @@ import (
"github.com/containerd/log"
"github.com/docker/docker/api/types/events"
"github.com/docker/docker/api/types/filters"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
daemonevents "github.com/docker/docker/daemon/events"
"github.com/docker/docker/libnetwork"
gogotypes "github.com/gogo/protobuf/types"

View File

@@ -6,7 +6,7 @@ import (
containertypes "github.com/docker/docker/api/types/container"
eventtypes "github.com/docker/docker/api/types/events"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/daemon/events"
)

View File

@@ -14,7 +14,7 @@ import (
"github.com/docker/docker/api/types/backend"
containertypes "github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/events"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/daemon/internal/stream"
"github.com/docker/docker/errdefs"
"github.com/docker/docker/pkg/pools"

View File

@@ -6,8 +6,8 @@ import (
containerd "github.com/containerd/containerd/v2/client"
"github.com/containerd/containerd/v2/pkg/apparmor"
coci "github.com/containerd/containerd/v2/pkg/oci"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/config"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/oci/caps"
"github.com/opencontainers/runtime-spec/specs-go"
)

View File

@@ -8,7 +8,7 @@ import (
"github.com/containerd/containerd/v2/pkg/apparmor"
containertypes "github.com/docker/docker/api/types/container"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/opencontainers/runtime-spec/specs-go"
"gotest.tools/v3/assert"
)

View File

@@ -3,8 +3,8 @@ package daemon
import (
"context"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/config"
"github.com/docker/docker/daemon/container"
"github.com/opencontainers/runtime-spec/specs-go"
)

View File

@@ -8,7 +8,7 @@ import (
"github.com/containerd/log"
"github.com/docker/docker/api/types/events"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/errdefs"
"github.com/moby/go-archive"
"github.com/moby/go-archive/chrootarchive"

View File

@@ -12,7 +12,7 @@ import (
"github.com/docker/docker/api/types/backend"
containertypes "github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/events"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/daemon/internal/metrics"
)

View File

@@ -6,7 +6,7 @@ import (
containertypes "github.com/docker/docker/api/types/container"
eventtypes "github.com/docker/docker/api/types/events"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/daemon/events"
)

View File

@@ -11,7 +11,7 @@ import (
imagetype "github.com/docker/docker/api/types/image"
"github.com/docker/docker/api/types/registry"
"github.com/docker/docker/builder"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/daemon/images"
"github.com/docker/docker/image"
"github.com/docker/docker/layer"

View File

@@ -5,7 +5,7 @@ import (
"errors"
"fmt"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/layer"
"github.com/moby/go-archive"
)

View File

@@ -10,7 +10,7 @@ import (
"github.com/docker/docker/api/types/backend"
"github.com/docker/docker/api/types/events"
imagetypes "github.com/docker/docker/api/types/image"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/daemon/internal/metrics"
"github.com/docker/docker/errdefs"
"github.com/docker/docker/image"

View File

@@ -11,7 +11,7 @@ import (
"github.com/docker/docker/api/types/backend"
imagetypes "github.com/docker/docker/api/types/image"
timetypes "github.com/docker/docker/api/types/time"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/image"
"github.com/docker/docker/layer"
)

View File

@@ -6,7 +6,7 @@ import (
"context"
"github.com/containerd/log"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/image"
)

View File

@@ -3,7 +3,7 @@ package images
import (
"context"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/image"
"github.com/docker/docker/layer"
"github.com/pkg/errors"

View File

@@ -8,7 +8,7 @@ import (
"github.com/containerd/containerd/v2/core/content"
"github.com/containerd/containerd/v2/core/leases"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
daemonevents "github.com/docker/docker/daemon/events"
"github.com/docker/docker/distribution"
"github.com/docker/docker/distribution/metadata"

View File

@@ -12,8 +12,8 @@ import (
"github.com/docker/docker/api/types/backend"
containertypes "github.com/docker/docker/api/types/container"
networktypes "github.com/docker/docker/api/types/network"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/config"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/daemon/network"
"github.com/docker/docker/errdefs"
"github.com/docker/go-connections/nat"

View File

@@ -3,7 +3,7 @@ package daemon
import (
"github.com/docker/docker/api/types/backend"
"github.com/docker/docker/api/types/container"
containerpkg "github.com/docker/docker/container"
containerpkg "github.com/docker/docker/daemon/container"
)
// This sets platform-specific fields

View File

@@ -4,7 +4,7 @@ import (
"testing"
containertypes "github.com/docker/docker/api/types/container"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"gotest.tools/v3/assert"
is "gotest.tools/v3/assert/cmp"
)

View File

@@ -3,7 +3,7 @@ package daemon
import (
"github.com/docker/docker/api/types/backend"
"github.com/docker/docker/api/types/container"
containerpkg "github.com/docker/docker/container"
containerpkg "github.com/docker/docker/daemon/container"
)
// This sets platform-specific fields

View File

@@ -12,7 +12,7 @@ import (
"github.com/containerd/log"
containertypes "github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/events"
containerpkg "github.com/docker/docker/container"
containerpkg "github.com/docker/docker/daemon/container"
"github.com/docker/docker/errdefs"
"github.com/moby/sys/signal"
"github.com/pkg/errors"

View File

@@ -3,7 +3,7 @@ package daemon
import (
"sync"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
)
// linkIndex stores link relationships between containers, including their specified alias

View File

@@ -14,7 +14,7 @@ import (
"github.com/docker/docker/api/types/backend"
containertypes "github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/filters"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/errdefs"
"github.com/docker/docker/image"
"github.com/docker/go-connections/nat"

View File

@@ -10,7 +10,7 @@ import (
containertypes "github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/filters"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/image"
"github.com/google/uuid"
"github.com/opencontainers/go-digest"

View File

@@ -2,7 +2,7 @@
package daemon
import "github.com/docker/docker/container"
import "github.com/docker/docker/daemon/container"
// excludeByIsolation is a platform specific helper function to support PS
// filtering by Isolation. This is a Windows-only concept, so is a no-op on Unix.

View File

@@ -3,7 +3,7 @@ package daemon
import (
"strings"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
)
// excludeByIsolation is a platform specific helper function to support PS

View File

@@ -10,8 +10,8 @@ import (
"github.com/docker/docker/api/types/backend"
containertypes "github.com/docker/docker/api/types/container"
timetypes "github.com/docker/docker/api/types/time"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/config"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/daemon/logger"
logcache "github.com/docker/docker/daemon/logger/loggerutils/cache"
"github.com/docker/docker/errdefs"

View File

@@ -8,7 +8,7 @@ import (
"github.com/containerd/log"
"github.com/containerd/platforms"
"github.com/docker/docker/api/types/backend"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/image"
"github.com/docker/docker/internal/multierror"
ocispec "github.com/opencontainers/image-spec/specs-go/v1"

View File

@@ -6,7 +6,7 @@ import (
"testing"
"github.com/containerd/platforms"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/image"
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
"gotest.tools/v3/assert"

View File

@@ -10,8 +10,8 @@ import (
"github.com/containerd/log"
"github.com/docker/docker/api/types/backend"
"github.com/docker/docker/api/types/events"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/config"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/daemon/internal/metrics"
libcontainerdtypes "github.com/docker/docker/libcontainerd/types"
"github.com/docker/docker/restartmanager"

View File

@@ -7,7 +7,7 @@ import (
"github.com/containerd/log"
mounttypes "github.com/docker/docker/api/types/mount"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
volumesservice "github.com/docker/docker/volume/service"
)

View File

@@ -6,7 +6,7 @@ import (
cerrdefs "github.com/containerd/errdefs"
"github.com/containerd/log"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/daemon/names"
"github.com/docker/docker/errdefs"
"github.com/docker/docker/pkg/namesgenerator"

View File

@@ -16,9 +16,9 @@ import (
"github.com/docker/docker/api/types/events"
"github.com/docker/docker/api/types/filters"
networktypes "github.com/docker/docker/api/types/network"
"github.com/docker/docker/container"
clustertypes "github.com/docker/docker/daemon/cluster/provider"
"github.com/docker/docker/daemon/config"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/daemon/network"
"github.com/docker/docker/errdefs"
"github.com/docker/docker/internal/otelutil"

View File

@@ -14,8 +14,8 @@ import (
coci "github.com/containerd/containerd/v2/pkg/oci"
"github.com/containerd/log"
containertypes "github.com/docker/docker/api/types/container"
"github.com/docker/docker/container"
dconfig "github.com/docker/docker/daemon/config"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/errdefs"
"github.com/docker/docker/internal/rootless/mountopts"
"github.com/docker/docker/internal/rootless/specconv"

View File

@@ -7,8 +7,8 @@ import (
"testing"
containertypes "github.com/docker/docker/api/types/container"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/config"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/daemon/network"
"github.com/docker/docker/libnetwork"
nwconfig "github.com/docker/docker/libnetwork/config"

View File

@@ -5,7 +5,7 @@ import (
"github.com/containerd/containerd/v2/core/containers"
coci "github.com/containerd/containerd/v2/pkg/oci"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/opencontainers/runtime-spec/specs-go"
)

View File

@@ -1,7 +1,7 @@
package daemon
import (
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/opencontainers/runtime-spec/specs-go"
)

View File

@@ -14,8 +14,8 @@ import (
"github.com/containerd/log"
"github.com/docker/docker/api/types/backend"
containertypes "github.com/docker/docker/api/types/container"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/config"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/errdefs"
"github.com/docker/docker/image"
"github.com/docker/docker/oci"

View File

@@ -11,7 +11,7 @@ import (
"gotest.tools/v3/fs"
containertypes "github.com/docker/docker/api/types/container"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
swarmagent "github.com/moby/swarmkit/v2/agent"
swarmapi "github.com/moby/swarmkit/v2/api"
"github.com/opencontainers/runtime-spec/specs-go"

View File

@@ -6,7 +6,7 @@ import (
"github.com/containerd/log"
"github.com/docker/docker/api/types/events"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
)
// ContainerPause pauses a container

View File

@@ -7,7 +7,7 @@ import (
"github.com/containerd/log"
"github.com/docker/docker/api/types/events"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/daemon/network"
"github.com/docker/docker/errdefs"
"github.com/docker/docker/libnetwork"

View File

@@ -6,7 +6,7 @@ import (
"context"
"testing"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/libcontainerd/types"
"gotest.tools/v3/assert"
)

View File

@@ -6,7 +6,7 @@ import (
containertypes "github.com/docker/docker/api/types/container"
"github.com/docker/docker/api/types/events"
"github.com/docker/docker/container"
"github.com/docker/docker/daemon/container"
)
// ContainerRestart stops and starts a container. It attempts to

View File

@@ -7,8 +7,8 @@ import (
"github.com/containerd/containerd/v2/core/containers"
coci "github.com/containerd/containerd/v2/pkg/oci"
"github.com/containerd/log"
"github.com/docker/docker/container"
dconfig "github.com/docker/docker/daemon/config"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/profiles/seccomp"
"github.com/opencontainers/runtime-spec/specs-go"
)

View File

@@ -5,8 +5,8 @@ import (
coci "github.com/containerd/containerd/v2/pkg/oci"
containertypes "github.com/docker/docker/api/types/container"
"github.com/docker/docker/container"
dconfig "github.com/docker/docker/daemon/config"
"github.com/docker/docker/daemon/container"
"github.com/docker/docker/oci"
"github.com/docker/docker/pkg/sysinfo"
"github.com/docker/docker/profiles/seccomp"

Some files were not shown because too many files have changed in this diff Show More