The blob’s hash is printed to standard output. Repository you wish to work with in each case as the second argument.ĭxf push-blob a file to the registry and optionally give it a name You can use the following options with dxf. Separated by a space and followed by a newline).ĭXF_CHUNK_SIZE - Number of bytes pull-blob should download atĭXF_SKIPTLSVERIFY - Set this to 1 to skip TLS certificateĭXF_TLSVERIFY - Optional path to custom CA bundle to use for TLS ![]() Prepend each blob with its digest and size (printed in plain text, Set to any other value, a progress bar is only displayed if standardĭXF_BLOB_INFO - Set this to 1 if you want pull-blob to If this is set to 0, a progress bar is not displayed. This host, overriding the value returned by the registry.ĭXF_PROGRESS - If this is set to 1, a progress bar isĭisplayed (on standard error) during push-blob and pull-blob. Registry using http rather than https (which is the default).ĭXF_USERNAME - Name of user to authenticate as.ĭXF_AUTHORIZATION - HTTP Authorization header value.ĭXF_AUTH_HOST - If set, always perform token authentication to The dxf command-line tool uses the following environment variables:ĭXF_HOST - Host where Docker registry is running.ĭXF_INSECURE - Set this to 1 if you want to connect to the get_alias ( 'may15-readings' ) = for chunk in dxf. set_alias ( 'may15-readings', dgst ) assert dxf. authenticate ( 'fred', 'somepassword', response = response ) dxf = DXF ( '', 'fred/datalogger', auth ) dgst = dxf. Module example: from dxf import DXF def auth ( dxf, response ): dxf. Please note that dxf does not generate Docker containerĬonfiguration, so you won’t be able to docker pull data you storeĬommand-line example: dxf push-blob fred/datalogger logger.dat dxf pull-blob fred/datalogger is the same as: dxf set-alias fred/datalogger may15-readings $(dxf push-blob fred/datalogger logger.dat ) dxf pull-blob fred/datalogger $(dxf get-alias fred/datalogger may15-readings ) Supports Docker registry schemas v1 and v2 ![]() Python module and command-line tool for storing and retrieving data in a
0 Comments
Leave a Reply. |