It seems, sudo can't see the docker-machine. So, I'm usually solving the problem just connecting to docker-machine: docker-machine ssh default in one tab. In the other tab, I'm searching for the running process: ps aux | grep ssh. I've got something like that:
When I'm running under root, I've got the error:
It seems, sudo can't see the docker-machine. So, I'm usually solving the problem just connecting to docker-machine:
docker-machine ssh default
in one tab. In the other tab, I'm searching for the running process:ps aux | grep ssh
. I've got something like that:Then I'm running the same command under root, but I'm adding
-f -N -L 443:localhost:443
:It would be nice if there will be the working solution in the script. Thanks ;)