## IMPORTANT: # Should work for any IDE that supports ssh but only tested on PyCharm # These instructions are for systemd OS (Ubuntu 16.04 and up, Debian). # For systems running upstart like 14.04, modify /etc/default/docker by adding DOCKER_OPTS # # # ## First, we need to get Docker to accept ssh connections: # ## Open /lib/systemd/system/docker.service ## Add EnviromentFile + add "$DOCKER_OPTS" at end of ExecStart ## DOCKER_OPTS="-H tcp://0.0.0.0:2376 -H unix:///var/run/docker.sock" ## After change execute "$ systemctl daemon-reload" ## may need to reboot # ## Notes: ## port 2376 is traditionally used for encrypted comm, 2375 unsecured ## Example: EnvironmentFile=/etc/default/docker ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2376 -H unix:///var/run/docker.sock ## create and run (replace paths, tags and username with whatever): docker build -t dainis/ssh-debug -f Docker-ssh-rdebug . docker run -ti -d -v /home/dainis/workspace/test/outputs:/outputs \ -v /home/dainis/workspace/test/inputs:/inputs \ -p 22222:22 --name ssh-debug dainis/ssh-debug # login to look around (enter password as prompted) ssh root@localhost -p 22222