Skip to content

Commit 9dc5281

Browse files
committed
Deprecate all toolbox containers that don't use a reflexive entry point
Toolbox containers created prior to commit 8b84b5e didn't use 'toolbox init-container' as their entry points. This prevents them from being configured at runtime through the entry points. Being able to configure a toolbox container at runtime through the entry point is very handy, as compared to doing it statically via 'podman create', because the configuration doesn't get permanently baked into the container's definition. Instead, it's codified in toolbox(1), which can be updated over time, and the container reconfigured everytime it's started. A deprecation notice is the precursor to actually dropping support for these old containers in the future. Preliminary testing suggests that toolbox containers created prior to commit 8b84b5e already don't start on cgroups v2 systems. So, this is mainly targetted at cgroups v1 users, who are still able to work with those old containers. #336
1 parent 2d6c591 commit 9dc5281

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎toolbox‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1486,6 +1486,9 @@ run()
14861486
exit 1
14871487
fi
14881488
done
1489+
else
1490+
echo "$base_toolbox_command: container $toolbox_container uses deprecated features" >&2
1491+
echo "Consider recreating it with Toolbox version 0.0.17 or newer." >&2
14891492
fi
14901493

14911494
if ! $podman_command exec --user root:root "$toolbox_container" touch /run/.toolboxenv 2>&3; then

0 commit comments

Comments
 (0)