-
It seems there is some issue when we use the node:latest image. Not sure why. ##[error]Process completed with exit code 127. Run docker pull mattermost/mattermost-preview && \ docker pull mattermost/mattermost-preview && \ docker run --name mattermost-preview -d --publish 8065:8065 --add-host dockerhost:127.0.0.1 mattermost/mattermost-preview shell: sh -e {0} /__w/_temp/ad18eb6b-44b4-4e13-a5e2-a033258c5f34.sh: 1: /__w/_temp/ad18eb6b-44b4-4e13-a5e2-a033258c5f34.sh: docker: not found ##[error]Process completed with exit code 127. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
I checked your workflow file. Job Node latest runs on container with image node:latest. All steps that don’t already specify a container will run in node latest container. So the docker commands will run on node latest container. You got docker: not found error because docker is not installed on node latest container. There is the document for jobs.<job_id>.container: https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idcontainer |
Beta Was this translation helpful? Give feedback.
-
Right. But how would you create two different steps in one job which run on two different platforms? It’s probably not possible. At least the GHA docs are not very helpful here. My main problem is the lack of documentation and knowledge, see also actions/setup-node#61 |
Beta Was this translation helpful? Give feedback.
-
Ok so it seems ‘*’ works for the setup-node action but is not tested / documented as it seems. |
Beta Was this translation helpful? Give feedback.
-
apt-get install docker* -this solved the problem for me in kali-linux |
Beta Was this translation helpful? Give feedback.
-
DanielRuf:
It depends on your project. |
Beta Was this translation helpful? Give feedback.
-
Not really. It depends on your project setup. |
Beta Was this translation helpful? Give feedback.
Ok so it seems ‘*’ works for the setup-node action but is not tested / documented as it seems.