docker not found / exit code 127

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: mattermost/mattermost-preview

shell: sh -e {0}

/__w/_temp/ 1: /__w/_temp/ 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: 

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

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.