Where can I create images from? Locally at all? (Docker remote API) -
may/may not easy question here, can pull images create new docker image via api?
my (unsuccessful) attempts have been trying build image local. using docker images
list of images, trying use image id or repository has not worked me while using fromimage
query param so:
curl --data '' host:port/images/create?fromimage=test/hello-world&tag=webtesting
i consistently following error:
{"errordetail":{"message":"error: image test/hello-world not found"},"error":"error: image test/hello-world not found"}
in running docker images
, can see following:
repository tag image id created virtual size test/hello-world latest 6d9bd5e6da4e 2 days ago 556.9 mb
in combinations of using repository/tag/id error still displays. understand can create images urls fromsrc
, , there alternative create image routes uploading .tar files, is possible in case create image 1 exists locally? i've had success in compiling images ubuntu or centos, i'm looking replicate local new tags/repository.
i see in documentation fromimage parameter may used when pulling image -- does mean can import images hosted on dockerhub?
as noted, docker remote api documentation states pull operation must triggered image reference.
this not require use dockerhub, means image must located on registry , not in daemon's local cache. if running docker registry instance on host (which done public registry image in dockerhub) on port 5000, use "localhost:5000/test/hello-world" fromimage
, , pull locally hosted registry (after push locally of course).
Comments
Post a Comment