Skip to content

Windows incompatibilities in Docker daemon and OCI transport  #368

Description

@hferentschik

In the Docker daemon and OCI transport, there are some operations which are not compatible with Windows. For example, ocArchiveTransport makes use of non-portable tmp directory in
https://github.com/containers/image/blob/master/oci/archive/oci_transport.go#L197:

    func createOCIRef(image string) (tempDirOCIRef, error) {
    	dir, err := ioutil.TempDir("/var/tmp", "oci")
        //  ...
    	return tempDirRef, nil
    }

There are some other places where "/var/tmp" is used which should be addressed as part of the issue.

Another problem is trying to rename a file while it is still open. On Windows the file needs to be closed first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions