Everyday i have to restart docker containers everyday. Don’t ask. So i want to make Powershell script that connects through SSH to server with docker and then restarts all containers. So right now my script looks like this:
ssh mylogin@myhostname -i path_to_key_file
docker stop 4444
docker start 4444
It nicely connects to docker. But after connection nothing happens. It looks like Powershell dont pass docker stop and docker start commands.
I have very little experience with Powershell so i dont even know what i can do. I’ve tried things from other questions, other sites but nothing works.