diff --git a/cmd/dockerd/config_experimental.go b/cmd/dockerd/config_experimental.go deleted file mode 100644 index 355a29e859..0000000000 --- a/cmd/dockerd/config_experimental.go +++ /dev/null @@ -1,9 +0,0 @@ -package main - -import ( - "github.com/docker/docker/daemon/config" - "github.com/spf13/pflag" -) - -func attachExperimentalFlags(conf *config.Config, cmd *pflag.FlagSet) { -} diff --git a/cmd/dockerd/config_solaris.go b/cmd/dockerd/config_solaris.go deleted file mode 100644 index ed67064906..0000000000 --- a/cmd/dockerd/config_solaris.go +++ /dev/null @@ -1,17 +0,0 @@ -package main - -import ( - "github.com/docker/docker/daemon/config" - "github.com/spf13/pflag" -) - -// installConfigFlags adds flags to the pflag.FlagSet to configure the daemon -func installConfigFlags(conf *config.Config, flags *pflag.FlagSet) { - // First handle install flags which are consistent cross-platform - installCommonConfigFlags(conf, flags) - - // Then install flags common to unix platforms - installUnixConfigFlags(conf, flags) - - attachExperimentalFlags(conf, flags) -} diff --git a/cmd/dockerd/config_unix.go b/cmd/dockerd/config_unix.go index b3bd741c95..a3b0e36a08 100644 --- a/cmd/dockerd/config_unix.go +++ b/cmd/dockerd/config_unix.go @@ -44,6 +44,4 @@ func installConfigFlags(conf *config.Config, flags *pflag.FlagSet) { flags.Var(&conf.ShmSize, "default-shm-size", "Default shm size for containers") flags.BoolVar(&conf.NoNewPrivileges, "no-new-privileges", false, "Set no-new-privileges by default for new containers") flags.StringVar(&conf.IpcMode, "default-ipc-mode", config.DefaultIpcMode, `Default mode for containers ipc ("shareable" | "private")`) - - attachExperimentalFlags(conf, flags) } diff --git a/cmd/dockerd/daemon_linux.go b/cmd/dockerd/daemon_linux.go index b58f0f08a3..b09fed9293 100644 --- a/cmd/dockerd/daemon_linux.go +++ b/cmd/dockerd/daemon_linux.go @@ -1,5 +1,3 @@ -// +build linux - package main import systemdDaemon "github.com/coreos/go-systemd/daemon" diff --git a/container/container_windows.go b/container/container_windows.go index 5cb2e456c9..92b50a6eb6 100644 --- a/container/container_windows.go +++ b/container/container_windows.go @@ -1,5 +1,3 @@ -// +build windows - package container import ( diff --git a/container/state_solaris.go b/container/state_solaris.go deleted file mode 100644 index 1229650efa..0000000000 --- a/container/state_solaris.go +++ /dev/null @@ -1,7 +0,0 @@ -package container - -// setFromExitStatus is a platform specific helper function to set the state -// based on the ExitStatus structure. -func (s *State) setFromExitStatus(exitStatus *ExitStatus) { - s.ExitCodeValue = exitStatus.ExitCode -} diff --git a/daemon/archive_tarcopyoptions_windows.go b/daemon/archive_tarcopyoptions_windows.go index 535efd222e..500e1285df 100644 --- a/daemon/archive_tarcopyoptions_windows.go +++ b/daemon/archive_tarcopyoptions_windows.go @@ -1,5 +1,3 @@ -// +build windows - package daemon import ( diff --git a/daemon/cluster/listen_addr_linux.go b/daemon/cluster/listen_addr_linux.go index 3d4f239bda..2f342fd605 100644 --- a/daemon/cluster/listen_addr_linux.go +++ b/daemon/cluster/listen_addr_linux.go @@ -1,5 +1,3 @@ -// +build linux - package cluster import ( diff --git a/daemon/cluster/listen_addr_solaris.go b/daemon/cluster/listen_addr_solaris.go deleted file mode 100644 index 57a894b251..0000000000 --- a/daemon/cluster/listen_addr_solaris.go +++ /dev/null @@ -1,57 +0,0 @@ -package cluster - -import ( - "bufio" - "fmt" - "net" - "os/exec" - "strings" -) - -func (c *Cluster) resolveSystemAddr() (net.IP, error) { - defRouteCmd := "/usr/sbin/ipadm show-addr -p -o addr " + - "`/usr/sbin/route get default | /usr/bin/grep interface | " + - "/usr/bin/awk '{print $2}'`" - out, err := exec.Command("/usr/bin/bash", "-c", defRouteCmd).Output() - if err != nil { - return nil, fmt.Errorf("cannot get default route: %v", err) - } - - defInterface := strings.SplitN(string(out), "/", 2) - defInterfaceIP := net.ParseIP(defInterface[0]) - - return defInterfaceIP, nil -} - -func listSystemIPs() []net.IP { - var systemAddrs []net.IP - cmd := exec.Command("/usr/sbin/ipadm", "show-addr", "-p", "-o", "addr") - cmdReader, err := cmd.StdoutPipe() - if err != nil { - return nil - } - - if err := cmd.Start(); err != nil { - return nil - } - - scanner := bufio.NewScanner(cmdReader) - go func() { - for scanner.Scan() { - text := scanner.Text() - nameAddrPair := strings.SplitN(text, "/", 2) - // Let go of loopback interfaces and docker interfaces - systemAddrs = append(systemAddrs, net.ParseIP(nameAddrPair[0])) - } - }() - - if err := scanner.Err(); err != nil { - fmt.Printf("scan underwent err: %+v\n", err) - } - - if err := cmd.Wait(); err != nil { - fmt.Printf("run command wait: %+v\n", err) - } - - return systemAddrs -} diff --git a/daemon/config/config_solaris.go b/daemon/config/config_solaris.go deleted file mode 100644 index 6b1e061b58..0000000000 --- a/daemon/config/config_solaris.go +++ /dev/null @@ -1,30 +0,0 @@ -package config - -// Config defines the configuration of a docker daemon. -// These are the configuration settings that you pass -// to the docker daemon when you launch it with say: `docker -d -e lxc` -type Config struct { - CommonConfig - - // These fields are common to all unix platforms. - CommonUnixConfig -} - -// BridgeConfig stores all the bridge driver specific -// configuration. -type BridgeConfig struct { - commonBridgeConfig - - // Fields below here are platform specific. - commonUnixBridgeConfig -} - -// IsSwarmCompatible defines if swarm mode can be enabled in this config -func (conf *Config) IsSwarmCompatible() error { - return nil -} - -// ValidatePlatformConfig checks if any platform-specific configuration settings are invalid. -func (conf *Config) ValidatePlatformConfig() error { - return nil -} diff --git a/daemon/configs_linux.go b/daemon/configs_linux.go index af20ad78bd..d498c951e3 100644 --- a/daemon/configs_linux.go +++ b/daemon/configs_linux.go @@ -1,5 +1,3 @@ -// +build linux - package daemon func configsSupported() bool { diff --git a/daemon/configs_windows.go b/daemon/configs_windows.go index 7cb2e9c438..d498c951e3 100644 --- a/daemon/configs_windows.go +++ b/daemon/configs_windows.go @@ -1,5 +1,3 @@ -// +build windows - package daemon func configsSupported() bool { diff --git a/daemon/container_windows.go b/daemon/container_windows.go index 6fdd1e678e..6db130ab05 100644 --- a/daemon/container_windows.go +++ b/daemon/container_windows.go @@ -1,5 +1,3 @@ -//+build windows - package daemon import ( diff --git a/daemon/daemon_experimental.go b/daemon/daemon_experimental.go deleted file mode 100644 index fb0251d4af..0000000000 --- a/daemon/daemon_experimental.go +++ /dev/null @@ -1,7 +0,0 @@ -package daemon - -import "github.com/docker/docker/api/types/container" - -func (daemon *Daemon) verifyExperimentalContainerSettings(hostConfig *container.HostConfig, config *container.Config) ([]string, error) { - return nil, nil -} diff --git a/daemon/daemon_unix.go b/daemon/daemon_unix.go index 1f9885d176..51ea7c774f 100644 --- a/daemon/daemon_unix.go +++ b/daemon/daemon_unix.go @@ -574,11 +574,6 @@ func verifyPlatformContainerSettings(daemon *Daemon, hostConfig *containertypes. var warnings []string sysInfo := sysinfo.New(true) - warnings, err := daemon.verifyExperimentalContainerSettings(hostConfig, config) - if err != nil { - return warnings, err - } - w, err := verifyContainerResources(&hostConfig.Resources, sysInfo, update) // no matter err is nil or not, w could have data in itself. diff --git a/daemon/exec_solaris.go b/daemon/exec_solaris.go deleted file mode 100644 index 7c1fc20a0c..0000000000 --- a/daemon/exec_solaris.go +++ /dev/null @@ -1,11 +0,0 @@ -package daemon - -import ( - "github.com/docker/docker/container" - "github.com/docker/docker/daemon/exec" - specs "github.com/opencontainers/runtime-spec/specs-go" -) - -func (daemon *Daemon) execSetPlatformOpt(_ *container.Container, _ *exec.Config, _ *specs.Process) error { - return nil -} diff --git a/daemon/graphdriver/driver_linux.go b/daemon/graphdriver/driver_linux.go index f59862db85..d2d7c9f64c 100644 --- a/daemon/graphdriver/driver_linux.go +++ b/daemon/graphdriver/driver_linux.go @@ -1,5 +1,3 @@ -// +build linux - package graphdriver import ( diff --git a/daemon/graphdriver/vfs/copy_linux.go b/daemon/graphdriver/vfs/copy_linux.go index a632d353e3..1a63a11807 100644 --- a/daemon/graphdriver/vfs/copy_linux.go +++ b/daemon/graphdriver/vfs/copy_linux.go @@ -1,5 +1,3 @@ -// +build linux - package vfs import "github.com/docker/docker/daemon/graphdriver/copy" diff --git a/daemon/graphdriver/vfs/quota_linux.go b/daemon/graphdriver/vfs/quota_linux.go index 032c15b9ef..d40d0d13e9 100644 --- a/daemon/graphdriver/vfs/quota_linux.go +++ b/daemon/graphdriver/vfs/quota_linux.go @@ -1,5 +1,3 @@ -// +build linux - package vfs import "github.com/docker/docker/daemon/graphdriver/quota" diff --git a/daemon/initlayer/setup_windows.go b/daemon/initlayer/setup_windows.go index b47563ebf6..ff78a4d0b0 100644 --- a/daemon/initlayer/setup_windows.go +++ b/daemon/initlayer/setup_windows.go @@ -1,5 +1,3 @@ -// +build windows - package initlayer import ( diff --git a/daemon/inspect_unix.go b/daemon/inspect_linux.go similarity index 99% rename from daemon/inspect_unix.go rename to daemon/inspect_linux.go index f073695e33..8d334dcf90 100644 --- a/daemon/inspect_unix.go +++ b/daemon/inspect_linux.go @@ -1,5 +1,3 @@ -// +build !windows - package daemon import ( diff --git a/daemon/inspect_solaris.go b/daemon/inspect_solaris.go deleted file mode 100644 index 0b275c1418..0000000000 --- a/daemon/inspect_solaris.go +++ /dev/null @@ -1,27 +0,0 @@ -package daemon - -import ( - "github.com/docker/docker/api/types" - "github.com/docker/docker/api/types/backend" - "github.com/docker/docker/api/types/versions/v1p19" - "github.com/docker/docker/container" - "github.com/docker/docker/daemon/exec" -) - -// This sets platform-specific fields -func setPlatformSpecificContainerFields(container *container.Container, contJSONBase *types.ContainerJSONBase) *types.ContainerJSONBase { - return contJSONBase -} - -// containerInspectPre120 get containers for pre 1.20 APIs. -func (daemon *Daemon) containerInspectPre120(name string) (*v1p19.ContainerJSON, error) { - return &v1p19.ContainerJSON{}, nil -} - -func inspectExecProcessConfig(e *exec.Config) *backend.ExecProcessConfig { - return &backend.ExecProcessConfig{ - Tty: e.Tty, - Entrypoint: e.Entrypoint, - Arguments: e.Args, - } -} diff --git a/daemon/listeners/listeners_unix.go b/daemon/listeners/listeners_linux.go similarity index 99% rename from daemon/listeners/listeners_unix.go rename to daemon/listeners/listeners_linux.go index 3a7c0f85b0..7e0aaa237f 100644 --- a/daemon/listeners/listeners_unix.go +++ b/daemon/listeners/listeners_linux.go @@ -1,5 +1,3 @@ -// +build !windows - package listeners import ( diff --git a/daemon/listeners/listeners_solaris.go b/daemon/listeners/listeners_solaris.go deleted file mode 100644 index ee1bd0fccf..0000000000 --- a/daemon/listeners/listeners_solaris.go +++ /dev/null @@ -1,43 +0,0 @@ -package listeners - -import ( - "crypto/tls" - "fmt" - "net" - "os" - - "github.com/docker/go-connections/sockets" - "github.com/sirupsen/logrus" -) - -// Init creates new listeners for the server. -func Init(proto, addr, socketGroup string, tlsConfig *tls.Config) (ls []net.Listener, err error) { - switch proto { - case "tcp": - l, err := sockets.NewTCPSocket(addr, tlsConfig) - if err != nil { - return nil, err - } - ls = append(ls, l) - case "unix": - gid, err := lookupGID(socketGroup) - if err != nil { - if socketGroup != "" { - if socketGroup != defaultSocketGroup { - return nil, err - } - logrus.Warnf("could not change group %s to %s: %v", addr, defaultSocketGroup, err) - } - gid = os.Getgid() - } - l, err := sockets.NewUnixSocket(addr, gid) - if err != nil { - return nil, fmt.Errorf("can't create unix socket %s: %v", addr, err) - } - ls = append(ls, l) - default: - return nil, fmt.Errorf("Invalid protocol format: %q", proto) - } - - return -} diff --git a/daemon/logger/gcplogs/gcplogging_linux.go b/daemon/logger/gcplogs/gcplogging_linux.go index 8917bdd4c7..41a09362f2 100644 --- a/daemon/logger/gcplogs/gcplogging_linux.go +++ b/daemon/logger/gcplogs/gcplogging_linux.go @@ -1,5 +1,3 @@ -// +build linux - package gcplogs import ( diff --git a/daemon/monitor_solaris.go b/daemon/monitor_solaris.go deleted file mode 100644 index 0995758000..0000000000 --- a/daemon/monitor_solaris.go +++ /dev/null @@ -1,11 +0,0 @@ -package daemon - -import ( - "github.com/docker/docker/container" - "github.com/docker/docker/libcontainerd" -) - -// postRunProcessing perfoms any processing needed on the container after it has stopped. -func (daemon *Daemon) postRunProcessing(_ *container.Container, _ libcontainerd.EventInfo) error { - return nil -} diff --git a/daemon/secrets_linux.go b/daemon/secrets_linux.go index fca4e12598..6ae0117b73 100644 --- a/daemon/secrets_linux.go +++ b/daemon/secrets_linux.go @@ -1,5 +1,3 @@ -// +build linux - package daemon func secretsSupported() bool { diff --git a/daemon/secrets_windows.go b/daemon/secrets_windows.go index 9054354c8d..6ae0117b73 100644 --- a/daemon/secrets_windows.go +++ b/daemon/secrets_windows.go @@ -1,5 +1,3 @@ -// +build windows - package daemon func secretsSupported() bool { diff --git a/daemon/selinux_linux.go b/daemon/selinux_linux.go index fb2578bf4d..46da7f1370 100644 --- a/daemon/selinux_linux.go +++ b/daemon/selinux_linux.go @@ -1,5 +1,3 @@ -// +build linux - package daemon import "github.com/opencontainers/selinux/go-selinux" diff --git a/daemon/stats/collector_windows.go b/daemon/stats/collector_windows.go index 5fb27ced66..03109fd8fc 100644 --- a/daemon/stats/collector_windows.go +++ b/daemon/stats/collector_windows.go @@ -1,5 +1,3 @@ -// +build windows - package stats // platformNewStatsCollector performs platform specific initialisation of the diff --git a/daemon/update_linux.go b/daemon/update_linux.go index 41d3b5324a..966d74e350 100644 --- a/daemon/update_linux.go +++ b/daemon/update_linux.go @@ -1,5 +1,3 @@ -// +build linux - package daemon import ( diff --git a/daemon/update_solaris.go b/daemon/update_solaris.go deleted file mode 100644 index f3b545c5f0..0000000000 --- a/daemon/update_solaris.go +++ /dev/null @@ -1,11 +0,0 @@ -package daemon - -import ( - "github.com/docker/docker/api/types/container" - "github.com/docker/docker/libcontainerd" -) - -func toContainerdResources(resources container.Resources) libcontainerd.Resources { - var r libcontainerd.Resources - return r -} diff --git a/daemon/update_windows.go b/daemon/update_windows.go index 4f85f41dda..e60f63d92d 100644 --- a/daemon/update_windows.go +++ b/daemon/update_windows.go @@ -1,5 +1,3 @@ -// +build windows - package daemon import ( diff --git a/daemon/volumes_windows.go b/daemon/volumes_windows.go index 62c9e23ac0..bfb5133d3d 100644 --- a/daemon/volumes_windows.go +++ b/daemon/volumes_windows.go @@ -1,5 +1,3 @@ -// +build windows - package daemon import ( diff --git a/distribution/pull_v2_windows.go b/distribution/pull_v2_windows.go index b4573e1eca..08ff4371cb 100644 --- a/distribution/pull_v2_windows.go +++ b/distribution/pull_v2_windows.go @@ -1,5 +1,3 @@ -// +build windows - package distribution import ( diff --git a/opts/hosts_windows.go b/opts/hosts_windows.go index 7c239e00f1..684f0e128c 100644 --- a/opts/hosts_windows.go +++ b/opts/hosts_windows.go @@ -1,5 +1,3 @@ -// +build windows - package opts // DefaultHost constant defines the default host string used by docker on Windows diff --git a/pkg/archive/archive_windows.go b/pkg/archive/archive_windows.go index a22410c039..66243a64ab 100644 --- a/pkg/archive/archive_windows.go +++ b/pkg/archive/archive_windows.go @@ -1,5 +1,3 @@ -// +build windows - package archive import ( diff --git a/pkg/directory/directory_windows.go b/pkg/directory/directory_windows.go index 6fb0917c4c..efe05cecef 100644 --- a/pkg/directory/directory_windows.go +++ b/pkg/directory/directory_windows.go @@ -1,5 +1,3 @@ -// +build windows - package directory import ( diff --git a/pkg/dmesg/dmesg_linux.go b/pkg/dmesg/dmesg_linux.go index 7df7f3d436..2fb494e1bf 100644 --- a/pkg/dmesg/dmesg_linux.go +++ b/pkg/dmesg/dmesg_linux.go @@ -1,5 +1,3 @@ -// +build linux - package dmesg import ( diff --git a/pkg/fsutils/fsutils_linux.go b/pkg/fsutils/fsutils_linux.go index e6094b55b7..7596259458 100644 --- a/pkg/fsutils/fsutils_linux.go +++ b/pkg/fsutils/fsutils_linux.go @@ -1,5 +1,3 @@ -// +build linux - package fsutils import ( diff --git a/pkg/homedir/homedir_linux.go b/pkg/homedir/homedir_linux.go index 012fe52a28..a7cd2e1039 100644 --- a/pkg/homedir/homedir_linux.go +++ b/pkg/homedir/homedir_linux.go @@ -1,5 +1,3 @@ -// +build linux - package homedir import ( diff --git a/pkg/idtools/idtools_windows.go b/pkg/idtools/idtools_windows.go index 94ca33afb1..ec49177702 100644 --- a/pkg/idtools/idtools_windows.go +++ b/pkg/idtools/idtools_windows.go @@ -1,5 +1,3 @@ -// +build windows - package idtools import ( diff --git a/pkg/ioutils/temp_windows.go b/pkg/ioutils/temp_windows.go index c258e5fdd8..fb14c95489 100644 --- a/pkg/ioutils/temp_windows.go +++ b/pkg/ioutils/temp_windows.go @@ -1,5 +1,3 @@ -// +build windows - package ioutils import ( diff --git a/pkg/mount/mountinfo_linux.go b/pkg/mount/mountinfo_linux.go index be69fee1d7..dde889e7bf 100644 --- a/pkg/mount/mountinfo_linux.go +++ b/pkg/mount/mountinfo_linux.go @@ -1,5 +1,3 @@ -// +build linux - package mount import ( diff --git a/pkg/mount/sharedsubtree_linux.go b/pkg/mount/sharedsubtree_linux.go index 8ceec84bc6..f3c13e5a16 100644 --- a/pkg/mount/sharedsubtree_linux.go +++ b/pkg/mount/sharedsubtree_linux.go @@ -1,5 +1,3 @@ -// +build linux - package mount // MakeShared ensures a mounted filesystem has the SHARED mount option enabled. diff --git a/pkg/parsers/kernel/kernel_windows.go b/pkg/parsers/kernel/kernel_windows.go index e598672776..93620eeffc 100644 --- a/pkg/parsers/kernel/kernel_windows.go +++ b/pkg/parsers/kernel/kernel_windows.go @@ -1,5 +1,3 @@ -// +build windows - package kernel import ( diff --git a/pkg/reexec/command_linux.go b/pkg/reexec/command_linux.go index 05319eacc9..d3f10615fc 100644 --- a/pkg/reexec/command_linux.go +++ b/pkg/reexec/command_linux.go @@ -1,5 +1,3 @@ -// +build linux - package reexec import ( diff --git a/pkg/reexec/command_windows.go b/pkg/reexec/command_windows.go index ca871c4227..c320876b79 100644 --- a/pkg/reexec/command_windows.go +++ b/pkg/reexec/command_windows.go @@ -1,5 +1,3 @@ -// +build windows - package reexec import ( diff --git a/pkg/signal/signal_windows.go b/pkg/signal/signal_windows.go index 440f2700e2..c84a63e821 100644 --- a/pkg/signal/signal_windows.go +++ b/pkg/signal/signal_windows.go @@ -1,5 +1,3 @@ -// +build windows - package signal import ( diff --git a/pkg/sysinfo/numcpu_linux.go b/pkg/sysinfo/numcpu_linux.go index f1d2d9db30..5739b33ac6 100644 --- a/pkg/sysinfo/numcpu_linux.go +++ b/pkg/sysinfo/numcpu_linux.go @@ -1,5 +1,3 @@ -// +build linux - package sysinfo import ( diff --git a/pkg/sysinfo/numcpu_windows.go b/pkg/sysinfo/numcpu_windows.go index 1d89dd5503..3516182ff2 100644 --- a/pkg/sysinfo/numcpu_windows.go +++ b/pkg/sysinfo/numcpu_windows.go @@ -1,5 +1,3 @@ -// +build windows - package sysinfo import ( diff --git a/pkg/sysinfo/sysinfo_windows.go b/pkg/sysinfo/sysinfo_windows.go index 4e6255bc59..8889318c39 100644 --- a/pkg/sysinfo/sysinfo_windows.go +++ b/pkg/sysinfo/sysinfo_windows.go @@ -1,5 +1,3 @@ -// +build windows - package sysinfo // New returns an empty SysInfo for windows for now. diff --git a/pkg/system/chtimes_windows.go b/pkg/system/chtimes_windows.go index 45428c141c..a1f4fd53bc 100644 --- a/pkg/system/chtimes_windows.go +++ b/pkg/system/chtimes_windows.go @@ -1,5 +1,3 @@ -// +build windows - package system import ( diff --git a/pkg/system/filesys_windows.go b/pkg/system/filesys_windows.go index a61b53d0ba..b1e46d9e85 100644 --- a/pkg/system/filesys_windows.go +++ b/pkg/system/filesys_windows.go @@ -1,5 +1,3 @@ -// +build windows - package system import ( diff --git a/pkg/system/mknod_windows.go b/pkg/system/mknod_windows.go index 2e863c0215..ba2692aedd 100644 --- a/pkg/system/mknod_windows.go +++ b/pkg/system/mknod_windows.go @@ -1,5 +1,3 @@ -// +build windows - package system // Mknod is not implemented on Windows. diff --git a/pkg/system/umask_windows.go b/pkg/system/umask_windows.go index 13f1de1769..71fc0f1bad 100644 --- a/pkg/system/umask_windows.go +++ b/pkg/system/umask_windows.go @@ -1,5 +1,3 @@ -// +build windows - package system // Umask is not supported on the windows platform. diff --git a/pkg/term/term_windows.go b/pkg/term/term_windows.go index b6819b3426..284ac63010 100644 --- a/pkg/term/term_windows.go +++ b/pkg/term/term_windows.go @@ -1,5 +1,3 @@ -// +build windows - package term import ( diff --git a/plugin/backend_linux.go b/plugin/backend_linux.go index 28a6c18ab5..1f2830a899 100644 --- a/plugin/backend_linux.go +++ b/plugin/backend_linux.go @@ -1,5 +1,3 @@ -// +build linux - package plugin import ( diff --git a/plugin/manager_linux.go b/plugin/manager_linux.go index eff21e1d05..59066c1d79 100644 --- a/plugin/manager_linux.go +++ b/plugin/manager_linux.go @@ -1,5 +1,3 @@ -// +build linux - package plugin import ( diff --git a/plugin/manager_solaris.go b/plugin/manager_solaris.go deleted file mode 100644 index ac03d6e639..0000000000 --- a/plugin/manager_solaris.go +++ /dev/null @@ -1,30 +0,0 @@ -package plugin - -import ( - "fmt" - - "github.com/docker/docker/plugin/v2" - specs "github.com/opencontainers/runtime-spec/specs-go" -) - -func (pm *Manager) enable(p *v2.Plugin, c *controller, force bool) error { - return fmt.Errorf("Not implemented") -} - -func (pm *Manager) initSpec(p *v2.Plugin) (*specs.Spec, error) { - return nil, fmt.Errorf("Not implemented") -} - -func (pm *Manager) disable(p *v2.Plugin, c *controller) error { - return fmt.Errorf("Not implemented") -} - -func (pm *Manager) restore(p *v2.Plugin) error { - return fmt.Errorf("Not implemented") -} - -// Shutdown plugins -func (pm *Manager) Shutdown() { -} - -func setupRoot(root string) error { return nil } diff --git a/plugin/manager_windows.go b/plugin/manager_windows.go index 56a7ee3ece..ac03d6e639 100644 --- a/plugin/manager_windows.go +++ b/plugin/manager_windows.go @@ -1,5 +1,3 @@ -// +build windows - package plugin import ( diff --git a/plugin/v2/plugin_linux.go b/plugin/v2/plugin_linux.go index be82363249..9590df4f7d 100644 --- a/plugin/v2/plugin_linux.go +++ b/plugin/v2/plugin_linux.go @@ -1,5 +1,3 @@ -// +build linux - package v2 import (