0

I have a server with Docker and Cypress. Cypress is lauch by docker with the following command :

docker run -it -v $PWD:/var/www/html/test -w /var/www/html/test cypress/included:6.5.0

It's good, it works well :)

I try to call this setup by gitlab ci. In gitlab Ci, I connect with SSH to my server and i lauch the command : ssh root@MY_IP "docker run -it -v $PWD:test -w /var/www/html/test cypress/included:6.5.0"

I have the following output : the input device is not a TTY

I can't find a trick.

Can someone help me?

rjdkolb
  • 10,377
  • 11
  • 69
  • 89
xxT3
  • 57
  • 6

1 Answers1

1

You have to remove the interactive mode (-it):

ssh root@MY_IP "docker run -v $PWD:test -w /var/www/html/test cypress/included:6.5.0"

Rémi Chauvenne
  • 479
  • 2
  • 10