RUN apt-get update & apt-get install -y openssh-server & apt-get install sudo RUN echo "export PATH=$PATH" > /etc/profile & \ # if you try to export them from outside gotta use a script # ssh will mess up your paths so save to profile Tested with P圜harm 17.2 Professional Edition.įROM tensorflow/tensorflow:latest-devel-gpu-p圓 IDE and code on host/network, environment # login to look around (enter password as prompted) p 22222:22 -name ssh-debug dainis/ssh-debug v /home/dainis/workspace/test/inputs:/inputs \ ĭocker run -ti -d -v /home/dainis/workspace/test/outputs:/outputs \ # create and run (replace paths, tags and username with whatever):ĭocker build -t dainis/ssh-debug -f Docker-ssh-rdebug. # Notes: # port 2376 is traditionally used for encrypted comm, 2375 unsecuredĮxecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2376 -H unix:///var/run/docker.sock # After change execute "$ systemctl daemon-reload" # Add EnviromentFile + add "$DOCKER_OPTS" at end of ExecStart # First, we need to get Docker to accept ssh connections: # For systems running upstart like 14.04, modify /etc/default/docker by adding DOCKER_OPTS # These instructions are for systemd OS (Ubuntu 16.04 and up, Debian). # Should work for any IDE that supports ssh but only tested on P圜harm
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |