Use experimental Docker features inside action

As described in Experimental Docker inside action · Issue #3090 · actions/virtual-environments · GitHub , it would be great to have an easy way to use Docker experimental features inside an action.
At the moment it looks like there’re just two ways of doing so (Experimental Docker inside action · Issue #3090 · actions/virtual-environments · GitHub), which are complex to explain to users.