Skip to content
This repository was archived by the owner on Oct 26, 2019. It is now read-only.
This repository was archived by the owner on Oct 26, 2019. It is now read-only.

Container or image import? #96

@Boran

Description

@Boran

Docker-php has a container export() to a tar file. There does not seem to be a corresponding import() though. Presumably it would be an image import().

Docker command line: http://docs.docker.com/reference/commandline/cli/#import
API, looks like /images/create might be the way to do this? http://docs.docker.com/reference/api/docker_remote_api_v1.16/#create-an-image

  • "fromSrc – source to import. The value may be a URL from which the image can be retrieved or - to read the image from the request body."

Has anyone looked into this? An branches around with such a function?
In ImageManager.php, pull() uses /create, it would be similar to that but feeding the tar file into the request body?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions