DEV Community

Discussion on: Deploy a React app to DigitalOcean using Github Actions and Docker

Collapse
 
kenessajr profile image
Remy Muhire

Hi Christian, can you check if you have docker installed on your production server?

Collapse
 
christianmontero profile image
Christian Montero

Hi Remy, thanks for answering I already solved, the issue was that I installed docker using snap, and reading on the web I realized that snap installs everything under /snap and that is not part of the environment variable PATH.

it was a little tricky because if I ssh from my local computer to the server and then run docker it works, but it didn't work from the yml file.

so instead of running docker I had to run /snap/bin/docker

or create a symlink:

sudo ln -s /snap/bin/docker /usr/bin/docker

Thank for this post bro it's very helpful!