* Call storage.DefaultStoreOptions() instead of
storage.DefaultStoreOptionsAutoDetectUID() in the tutorial.
* Mention installing passt when installing build-time dependencies.
* Include the registry part of examples that use node:12-alpine.
* Use registry.fedoraproject.org for Fedora images.
* Mention Fedora 40 instead of 35 in examples.
* Mount an emptyDir volume in the OpenShift example, so that it can use
overlay for storage
* Use a more recent buildah image as the base in the OpenShift example.
* Use a ReplicationController instead of a DeploymentConfig in the
OpenShift example, because DeploymentConfigs are deprecated.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Before executing `buildah unshare` for mounting a container from scratch
as a non-root user, we need to export the variable `newcontainer` so
that it is known inside the modified user namespace.
Signed-off-by: Steffen Straub <22006250+Steffen1989@users.noreply.github.com>
In the tutorial, switch to calling `DefaultStoreOptionsAutoDetectUID()`
instead of `DefaultStoreOptions()`, which should figure things out
better.
In the tutorial, add an example of using Run(), where for API backward
compatibility reasons, we can't tell the difference between "grant no
capabilties by default" and "grant the default set of capabilities by
default".
The default isolation can be set automatically, so start doing that at
run-time, but have the tutorial look it up anyway because the tutorial
on the web will be newer than our current release for at least a while.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Touch up a couple of diversity issues in one of the tutorials.
Changes the word "master" to "primary".
[NO NEW TESTS NEEDED]
Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
Update tutorials to not expect `buildah run` to do anything if it isn't
given a command to run. In some cases (including when we need to listen
for incoming connections when we might well not be root) this means we
use `podman run` instead.
Try to avoid using the terms container and image as though they're
interchangeable, which just creates confusion.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Details:
1. CommitOptions struct does not belong to `define` package anymore.
2. Formatting fixes threw by MD lint.
Signed-off-by: Francisco M. Casares <francares@gmail.com>
We want to shrink the size of the import when importing pkg from
buildah. This should help us shrink the size of the golang bindings
in podman.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Users have gotten confused when attempting the introduction turturial in
rootless mode. Explain that they have to `buildah unshare` before
mounting the image.
Fixes: https://github.com/containers/buildah/issues/2833
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Systemd is now complaining or mentioning /var/run as a legacy directory.
It has been many years where /var/run is a symlink to /run on all
most distributions, make the change to the default.
Partial fix for https://github.com/containers/podman/issues/8369
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
A bugzilla was created due to a misunderstaning gleened from the
Buildah tutorial. The person runing the tutorial followed it exactly,
but the example blew up on RHEL for them. The reason being is the
`--releasever` option has to use a valid version for the host's OS
when it's working on a scratch container or dnf will fail.
This adds clarifiction to the document to make that clear.
https://bugzilla.redhat.com/show_bug.cgi?id=1867426
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
I had a 'unknown flag --creds username:apikey' error message when trying as documented. Adding the '=' has fixed my issues (v.1.15)
Signed-off-by: Joel Lord <joelphy@gmail.com>
We have moved share code from buildah, podman and others into containers/common.
Specifically for this PR we are moving to use containers/common/pkg/unshare and
containers/common/pkg/cgroups.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Closes: #2010
Approved by: QiWang19
Thanks to Dmitry Smirnov @onlyjob for suggesting this tool.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Closes: #1985
Approved by: TomSweeneyRedHat
This is a partial fix for #1895. This focuses on (hopefully) helping a
user get into Buildah faster when they first hit the buildah.io site and
click down through the tutorials button. It also clarifies what's currently
out of scope for Buildah, adds some titles to make links easier and a bit more.
I expect I'll either be adding to this or creating a follow on PR to address more
of the notes in #1895.
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
The previous log-level implementation does not seem to work, which is
now fixed and aligns to other projects like podman and CRI-O. Therefore
the `--debug` flag has been deprecated and is now hidden.
Added documentation as well as integration tests.
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
Closes: #1811
Approved by: rhatdan
Some operating systems don’t have `bash` in `/bin`, so we should take the
`$PATH` into consideration for searching it.
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
Closes: #1804
Approved by: TomSweeneyRedHat
Before, there is no $newcontainer image committed thus
`podman run $newcontainer` attempts to pull $newcontainer from the various
container registries.
Signed-off-by: basilrabi <ericbasil.rabi@gmail.com>
Closes: #1627
Approved by: TomSweeneyRedHat
Quick touch up of the intro tutorial to bump releasever and change
diff to merged in mount output
Fixes: #1468
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
Closes: #1479
Approved by: rhatdan
Get rid of dangling whitespace in markdown files, and add a quick
validation check to error out if we try to add any new ones.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Adding command to explicitly become root user. I was trying to run commands with "sudo" in front and thus had issues following guide (new user) and this would have helped! Thanks!
Signed-off-by: Kyle R. Conway <kyconway@tower.Home>
Closes: #763
Approved by: rhatdan