mirror of
https://github.com/containers/podman.git
synced 2025-06-20 00:51:16 +08:00
Clear the storage-options from the graphdriver if users specifies --root
Fixes: https://github.com/containers/podman/issues/10393 Currently if a user specifies a --root flag to override the location of the container storage, we still enforce the storage-opts from storage.conf. This causes issues with people trying to intereact with the additional stores feature, and then forces them to use the obscure --storage-opt="" option. I belive this should be the default and we already do this when the user specifies the --storage-driver option. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -174,12 +174,12 @@ function test_port() {
|
||||
if [ $curl_rc -ne 0 ]; then
|
||||
_show_ok 0 "$testname - curl (port $port) failed with status $curl_rc"
|
||||
echo "# podman ps -a:"
|
||||
$PODMAN_BIN --root $WORKDIR/root --runroot $WORKDIR/runroot ps -a
|
||||
$PODMAN_BIN --storage-driver=vfs --root $WORKDIR/root --runroot $WORKDIR/runroot ps -a
|
||||
if type -p ss; then
|
||||
echo "# ss -tulpn:"
|
||||
ss -tulpn
|
||||
echo "# podman unshare --rootless-cni ss -tulpn:"
|
||||
$PODMAN_BIN --root $WORKDIR/root --runroot $WORKDIR/runroot unshare --rootless-cni ss -tulpn
|
||||
$PODMAN_BIN --storage-driver=vfs --root $WORKDIR/root --runroot $WORKDIR/runroot unshare --rootless-cni ss -tulpn
|
||||
fi
|
||||
echo "# cat $WORKDIR/server.log:"
|
||||
cat $WORKDIR/server.log
|
||||
@ -214,6 +214,7 @@ function start_service() {
|
||||
|
||||
$PODMAN_BIN \
|
||||
--log-level debug \
|
||||
--storage-driver=vfs \
|
||||
--root $WORKDIR/root \
|
||||
--runroot $WORKDIR/runroot \
|
||||
--cgroup-manager=systemd \
|
||||
@ -241,6 +242,7 @@ function start_service() {
|
||||
function podman() {
|
||||
echo "\$ podman $*" >>$WORKDIR/output.log
|
||||
output=$($PODMAN_BIN \
|
||||
--storage-driver=vfs \
|
||||
--root $WORKDIR/root \
|
||||
--runroot $WORKDIR/runroot \
|
||||
"$@")
|
||||
|
Reference in New Issue
Block a user