docker not found / exit code 127

It seems there is some issue when we use the node:latest image.

https://github.com/bitExpert/mattermost-client-node/commit/a4789d1163b65ed8c11c3de5a9866c95816681c2/checks?check_suite_id=413831133

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.

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 

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 https://github.com/actions/setup-node/issues/61

Ok so it seems ‘*’ works for the setup-node action but is not tested / documented as it seems.

1 Like

Code 127 broken link certificate

apt-get install docker* -this solved the problem for me in kali-linux

It depends on your project.

Not really. It depends on your project setup.