Associated community ticket: https://github.community/t/enabling-docker-cli-experimental/126247
When setup a container job in the workflow, and use the '--platform' at the 'options' key,
jobs:
job1:
runs-on: ubuntu-latest
container:
image: racket/racket-ci:latest
options: --init --platform linux/amd64
steps:
. . .
The "Initialize containers" step always returns the error below:
"--platform" is only supported on a Docker daemon with experimental features enabled
Hi @BrightRan @pmatos!
Take a look here, please. Looks like it's the similar issue
https://github.com/actions/virtual-environments/issues/368
Thanks @BrightRan for creating the issue.
@miketimofeev Thanks for the reference to #368 but unsure the solution helps.
The solution instructs you to restart the docker daemon with experimental features enabled, however, when you specify a container you don't have access to the system anymore since all the steps will be already ran inside the container.
Unless there's a way to only enter the container after a few steps, I am not sure how to do this.
@pmatos got it, thanks. Yeah, it looks like we can't enable experimental features during containers job.
I'm afraid, we don't have a plan to pre-enable them on the image as well because of the possible negative impact.
Could we optionally enable them, through a keyword to the container?
@pmatos it's not possible at the moment and as I know we don't have a plan to implement this functionality.
@alepauly could you please confirm?
@alepauly could you please confirm?
Correct. @pmatos, unfortunately it would require some changes to enable it before things boot up. We'll consider it but it's not something that can be done at this time. Thanks.
Thank you for the feedback - disappointing though.
Most helpful comment
Thank you for the feedback - disappointing though.