connecting to a remote Docker daemon over SSH pt2
I previously connected to a remote docker daemon using an SSH tunnel . While my solution worked, I wanted to explore a more elegant solution using docker contexts.
I initially attempted to use docker contexts as-is:
docker context create remote --docker "host=ssh://user@remote-machine" And then attempted to use it and perform a sanity check:
docker context use remote docker ps However, I received an error like the following:
# other output sh: docker: command not found After some searching, I was able to get to a solution.