-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running the 'docker' command from run-on-arch #33
Comments
These images we use have the bare minimum inside (even the apt cache have been stripped), so you'll have to run a "apt update;apt ugrade" and "apt install docker-ce docker-ce-cli containerd.io" or variations to install docker. |
Thanks. @uraimo, I'll try it. So, you mean, there isn't a default Docker image that it's used by all the builds and all the actions add up to it? |
Exactly, no single docker image since the OS Distro is different and depending on the arch you choose. |
Thanks, what I actually meant is that I was assuming there is an image that can be set at the beginning of the config file and that GH Actions uses for all the build steps and actions. Instead, it seems that every action can set up its own image. |
Yes exactly, every step is independent and defines a new emulated context that has its lifetime limited to the step you are in. The step following a run-on-arch one starts back in the default amd64 enviroment. |
I'd like to test my multiple-architecture Docker image, hence, I've tried the run-on-arch action, together with the
docker
command. Something like this:However, I get the error 'docker command not found':
Details here.
Usually, the
docker
command is available in the GH Actions host, without anything special to set, here it seems it isn't.Moreover, as I asked elsewhere, I'm not sure that I should prepare multi-arch images for all the parents that my image uses, or if doing it just for the latter is enough.
The text was updated successfully, but these errors were encountered: