docker import
import
Usage: docker import file|URL|- [REPOSITORY[:TAG]] Create an empty filesystem image and import the contents of the tarball (.tar, .tar.gz, .tgz, .bzip, .tar.xz, .txz) into it, then optionally tag it. -c, --change=[] Apply specified Dockerfile instructions while importing the image --help Print usage -m, --message= Set commit message for imported image
You can specify a URL
or -
(dash) to take data directly from STDIN
. The URL
can point to an archive (.tar, .tar.gz, .tgz, .bzip, .tar.xz, or .txz) containing a filesystem or to an individual file on the Docker host. If you specify an archive, Docker untars it in the container relative to the /
(root). If you specify an individual file, you must specify the full path within the host. To import from a remote location, specify a URI
that begins with the http://
or https://登录查看完整内容