2016-04-07 17:07:24 +02:00
|
|
|
% ATOMIC(1) Atomic Man Pages
|
|
|
|
|
% Giuseppe Scrivano
|
|
|
|
|
% April 2016
|
|
|
|
|
# NAME
|
|
|
|
|
atomic-pull - fetch an image locally
|
|
|
|
|
|
|
|
|
|
# SYNOPSIS
|
|
|
|
|
**atomic pull**
|
|
|
|
|
[**-h|--help**]
|
2016-09-20 07:53:08 -05:00
|
|
|
[**--storage=[ostree|docker]**]
|
|
|
|
|
[**-t**|**--type** atomic]
|
2016-04-07 17:07:24 +02:00
|
|
|
IMAGE
|
|
|
|
|
|
|
|
|
|
# DESCRIPTION
|
|
|
|
|
**atomic pull**, will fetch a remote image and store it locally.
|
|
|
|
|
|
2016-09-20 07:53:08 -05:00
|
|
|
You can pull an image from a docker registry (like docker.io) to your
|
|
|
|
|
local docker daemon with atomic pull.
|
|
|
|
|
|
|
|
|
|
`atomic pull docker.io/busybox:latest`
|
|
|
|
|
|
|
|
|
|
Use the `--storage ostree` option to store it into the OSTree repository. You can
|
|
|
|
|
define a default storage type in **/etc/atomic.conf** with the key of
|
|
|
|
|
**default_storage**.
|
2016-04-07 17:07:24 +02:00
|
|
|
|
2016-07-15 13:38:46 +02:00
|
|
|
IMAGE has the form `SOURCE:IMAGE-NAME`, where `SOURCE` can be one of
|
2017-10-09 10:06:43 +02:00
|
|
|
'oci', 'docker', 'dockertar', 'ostree', 'http'. If no `SOURCE` is
|
|
|
|
|
specified then 'oci' is assumed.
|
2016-07-15 13:38:46 +02:00
|
|
|
|
|
|
|
|
An 'oci' image is fetched via Skopeo from a Docker registry. These
|
|
|
|
|
two commands are equivalent:
|
|
|
|
|
|
2017-10-09 10:06:43 +02:00
|
|
|
`atomic pull etcd`
|
2016-07-15 13:38:46 +02:00
|
|
|
`atomic pull oci:etcd`
|
|
|
|
|
|
|
|
|
|
A 'docker' image is imported from the local Docker engine, thus not
|
|
|
|
|
accessing the network. It is equivalent to saving the image from
|
|
|
|
|
docker (`docker save IMAGE`) and importing it into the OSTree
|
|
|
|
|
repository:
|
|
|
|
|
|
2017-10-09 10:06:43 +02:00
|
|
|
`atomic pull --storage ostree docker:fedora:latest`
|
2016-07-15 13:38:46 +02:00
|
|
|
|
|
|
|
|
A 'dockertar' image works in a similar way to 'docker' images, except
|
|
|
|
|
that the saved tarball is specified:
|
|
|
|
|
|
2016-09-20 07:53:08 -05:00
|
|
|
`atomic pull --storage ostree dockertar:/path/to/the/image.tar`
|
2016-07-15 13:38:46 +02:00
|
|
|
|
2016-08-09 12:18:17 +02:00
|
|
|
If the user is not privileged, the image will be stored in the user
|
|
|
|
|
specific repository.
|
|
|
|
|
|
2017-10-09 10:06:43 +02:00
|
|
|
If you are pulling from an insecure registry, use the 'http' prefix.
|
|
|
|
|
It tells Skopeo to not do TLS verification on the specified registry.
|
|
|
|
|
|
|
|
|
|
`atomic pull --storage ostree http:REGISTRY/IMAGE:TAG`
|
|
|
|
|
|
2017-11-06 10:57:35 +01:00
|
|
|
Images where the registry is not specified are supported
|
|
|
|
|
when pulling to 'ostree'. However, we recommend that you use a
|
|
|
|
|
fully qualified name to refer unambiguously to the image.
|
|
|
|
|
|
2016-09-20 07:53:08 -05:00
|
|
|
If your /etc/containers/policy.json requires signature verification, the
|
|
|
|
|
pulled image is verified prior to being made available to the local docker
|
|
|
|
|
daemon. When interacting with a docker registry, Atomic uses the policy
|
|
|
|
|
and YAML configuration files /etc/containers/ to determine:
|
|
|
|
|
|
|
|
|
|
* if the image should be verified with a signature
|
|
|
|
|
* and where to get the signature
|
|
|
|
|
|
|
|
|
|
If you use the `--type atomic` switch to interact with an atomic registry,
|
|
|
|
|
Atomic will still use the policy to determine if verification is needed. The
|
|
|
|
|
signature itself will be obtained from the atomic registry. An example of
|
|
|
|
|
pulling from an atomic registry could be:
|
|
|
|
|
|
|
|
|
|
`atomic pull --type atomic my-atomic-registry:images/foobar`
|
|
|
|
|
|
2016-04-07 17:07:24 +02:00
|
|
|
# OPTIONS:
|
|
|
|
|
**-h** **--help**
|
2016-07-15 13:38:46 +02:00
|
|
|
Print usage statement
|
2016-04-07 17:07:24 +02:00
|
|
|
|
2017-10-25 09:49:53 +02:00
|
|
|
**--src-creds=USERNAME[:PASSWORD]**
|
|
|
|
|
Define the credentials to use with the source registry.
|
|
|
|
|
|
2016-09-20 07:53:08 -05:00
|
|
|
**--storage=[ostree|docker]**
|
2016-07-15 13:38:46 +02:00
|
|
|
Define the destination storage for the pulled image.
|
2016-04-07 17:07:24 +02:00
|
|
|
|
2016-09-20 07:53:08 -05:00
|
|
|
**-t** **--type atomic**
|
|
|
|
|
Define an alternate registry type. The only valid option is **atomic** for
|
|
|
|
|
when you want to take advantage of advanced atomic registry options.
|
|
|
|
|
|
2016-04-07 17:07:24 +02:00
|
|
|
# HISTORY
|
2016-07-15 13:38:46 +02:00
|
|
|
April 2016, Originally compiled by Giuseppe Scrivano (gscrivan at
|
2017-10-09 10:06:43 +02:00
|
|
|
redhat dot com)
|