Commit Graph

14 Commits

Author SHA1 Message Date
Daniel J Walsh 3a849c02a6 Add environment variable BUILDAH_RUNTIME
Allow user to setup alternate runtimes to use rather then
runc.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>

Closes: #786
Approved by: rhatdan
2018-06-13 07:40:46 +00:00
Daniel J Walsh c306342ee1 Shouldn't add insecure registries to list of search registries
The search registries and insecure registries are separate lists,
and should not be merged just because the InsecureSkipTLSVerify is
set

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>

Closes: #759
Approved by: mtrmac
2018-06-07 13:33:47 +00:00
Nalin Dahyabhai 8db406b683 util.ResolveName(): handle completion for tagged/digested image names
When checking if an image name includes a registry name, when checking
for cases where parsing it inserts additional path components, handle
cases where the name includes a tag or digest component.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>

Closes: #710
Approved by: rhatdan
2018-05-19 07:53:10 +00:00
Nalin Dahyabhai 44468f811c Force "localhost" as a default registry
Extend util.ResolveName() to prepend "localhost" to the list of
registries, and teach util.FindImage(), util.ExpandNames(), and
util.AddImageNames() to use util.ResolveName().

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>

Closes: #648
Approved by: rhatdan
2018-05-02 19:52:53 +00:00
Nalin Dahyabhai d0b8769fbd Drop util.GetLocalTime()
util.GetLocalTime() duplicates time.Time.Local(), so drop it.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>

Closes: #649
Approved by: rhatdan
2018-05-02 12:41:46 +00:00
TomSweeneyRedHat 6583273185 Allow umount to have multi-containers
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Closes: #561
Approved by: rhatdan
2018-04-08 13:07:37 +00:00
TomSweeneyRedHat 78b0a37293 Change image time to locale, add troubleshooting.md, add logo to other mds
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Closes: #544
Approved by: rhatdan
2018-03-30 11:41:45 +00:00
umohnani8 1ca41dcbcb Add various transport support to buildah from
buildah from now supports pulling images using the following transports:
docker-archive, oci-archive, and dir.

Signed-off-by: umohnani8 <umohnani@redhat.com>

Closes: #524
Approved by: TomSweeneyRedHat
2018-03-22 17:22:47 +00:00
TomSweeneyRedHat 68a6c0a4c0 Display full error string instead of just status
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Closes: #485
Approved by: rhatdan
2018-02-24 09:12:53 +00:00
Boaz Shuster ad49b24d0b Return a better error message when failed to resolve an image
During the creation of a new builder object there are errors
that are only logged into "logrus.Debugf".

If in the end of the process "ref" or "img" are nil and "options.FromImage"
is set then it means that there was an issue.
By default, it was assumed that the image name is wrong. Yet,
this assumption isn't always correct. For example, it might fail due to
authorization or connection errors.

In this patch, I am attempting to fix this problem by checking the
last error stored in the "err" variable and returning the cause
of the failure.

Signed-off-by: Boaz Shuster <ripcurld.github@gmail.com>

Closes: #406
Approved by: rhatdan
2018-01-24 14:03:28 +00:00
Nalin Dahyabhai 47ac96155f Use configured registries to resolve image names
When locating an image for pulling, inspection, or pushing, if we're
given an image name that doesn't include a domain/registry, try building
a set of candidate names using the configured registries as domains, and
then pull/inspect/push using the first of those names that works.

If a name that we're given corresponds to a prefix of the ID of a local
image, skip completion and use the ID directly instead.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>

Closes: #360
Approved by: rhatdan
2017-12-14 22:21:16 +00:00
Nalin Dahyabhai c11936323a Fix inspect/tag-by-truncated-image-ID
Teach inspect and tag about image IDs, truncated and otherwise.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>

Closes: #138
Approved by: rhatdan
2017-06-08 18:31:31 +00:00
Dan Walsh 8ced1276e5 Change functions that use a fmt.Errorf to wrap an err to error.Wrapf
Impove error reporting by wrapping all returned err functions with
error.Wrapf

Signed-off-by: Dan Walsh <dwalsh@redhat.com>

Closes: #124
Approved by: nalind

Signed-off-by: Dan Walsh <dwalsh@redhat.com>

Closes: #125
Approved by: nalind
2017-06-02 14:17:04 +00:00
Nalin Dahyabhai 3065ea3d16 Add a "tag" command
Add a "tag" command, for adding names to locally-stored images.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>

Closes: #110
Approved by: rhatdan
2017-05-19 19:59:47 +00:00