"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "container/container_windows.go" between
moby-20.10.6.tar.gz and moby-20.10.7.tar.gz

About: Moby is a framework to assemble specialized container systems (formerly project name Docker; see here to clarify the relationship between the projects).

container_windows.go  (moby-20.10.6):container_windows.go  (moby-20.10.7)
skipping to change at line 15 skipping to change at line 15
"os" "os"
"path/filepath" "path/filepath"
"github.com/docker/docker/api/types" "github.com/docker/docker/api/types"
containertypes "github.com/docker/docker/api/types/container" containertypes "github.com/docker/docker/api/types/container"
swarmtypes "github.com/docker/docker/api/types/swarm" swarmtypes "github.com/docker/docker/api/types/swarm"
"github.com/docker/docker/pkg/system" "github.com/docker/docker/pkg/system"
) )
const ( const (
containerConfigMountPath = `C:\`
containerSecretMountPath = `C:\ProgramData\Docker\secrets` containerSecretMountPath = `C:\ProgramData\Docker\secrets`
containerInternalSecretMountPath = `C:\ProgramData\Docker\internal\secret s` containerInternalSecretMountPath = `C:\ProgramData\Docker\internal\secret s`
containerInternalConfigsDirPath = `C:\ProgramData\Docker\internal\config s` containerInternalConfigsDirPath = `C:\ProgramData\Docker\internal\config s`
// DefaultStopTimeout is the timeout (in seconds) for the shutdown call o n a container // DefaultStopTimeout is the timeout (in seconds) for the shutdown call o n a container
DefaultStopTimeout = 30 DefaultStopTimeout = 30
) )
// UnmountIpcMount unmounts Ipc related mounts. // UnmountIpcMount unmounts Ipc related mounts.
// This is a NOOP on windows. // This is a NOOP on windows.
skipping to change at line 90 skipping to change at line 91
} }
return os.RemoveAll(p) return os.RemoveAll(p)
} }
// CreateConfigSymlinks creates symlinks to files in the config mount. // CreateConfigSymlinks creates symlinks to files in the config mount.
func (container *Container) CreateConfigSymlinks() error { func (container *Container) CreateConfigSymlinks() error {
for _, configRef := range container.ConfigReferences { for _, configRef := range container.ConfigReferences {
if configRef.File == nil { if configRef.File == nil {
continue continue
} }
resolvedPath, _, err := container.ResolvePath(configRef.File.Name ) resolvedPath, _, err := container.ResolvePath(getConfigTargetPath (configRef))
if err != nil { if err != nil {
return err return err
} }
if err := system.MkdirAll(filepath.Dir(resolvedPath), 0); err != nil { if err := system.MkdirAll(filepath.Dir(resolvedPath), 0); err != nil {
return err return err
} }
if err := os.Symlink(filepath.Join(containerInternalConfigsDirPat h, configRef.ConfigID), resolvedPath); err != nil { if err := os.Symlink(filepath.Join(containerInternalConfigsDirPat h, configRef.ConfigID), resolvedPath); err != nil {
return err return err
} }
} }
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)