How to enable experimental features for Docker in Github's workflow for Ubuntu 18.04?
If you’re using Github’s workflows for CI/CD and you need to use some of Docker’s experimental features, or you want to use buildx or maybe you just want to use some of the new dockerfile experimental syntaxes then you need to enable the experimental features for the CLI and probably the daemon too.
When running natively on Linux or macOS, it’s pretty easy.
To enable the experimental features for the CLI, you just need to add the following to your ~/.docker/config.json
config:
|
|
And to enable the experimental features for the daemon, you need to add the following to your /etc/docker/daemon.json
config:
|
|
The Github workflow setup is no different:
|
|
That’s pretty much it. See it in action at rolandjitsu/docker-ssh.
If you find this post helpful, please consider sponsoring.
Sponsor