How to Connect to Remote Docker using docker context CLI Pre-requisite: ... Listing the current context values. ... Run a new Docker container on Node 2. ... Listing the container. ... Setting the Environment Variable. ... Verify you configured variable. ... Configure SSH to trust the host. ... Connecting to Nodes with DOCKER_HOST. More items... May 4, 2022