cypress-io/cypress-docker-images

Can't run in Chrome container

Closed this issue · 1 comments

I am not sure how to run Cypress in the chrome container. The cypress binary doesn't seem to available in it.

$ docker run --rm cypress/browsers:chrome62 cypress run --browser chrome
docker: Error response from daemon: OCI runtime create failed: container_linux.go:295: starting container process caused "exec: \"cypress\": executable file not found in $PATH": unknown.

I was able to install cypress as root, then it worked:

FROM cypress/browsers:chrome62

USER root
ENV PATH /node_modules/.bin:$PATH

RUN npm install cypress@1.0.3
RUN cypress verify