Hacker News new | ask | show | jobs
by boothead 4700 days ago
Interesting to see emacs on its lonesome in one of those boxes. How does that work? Emacs client into an exposed port or something else?
1 comments

In your .emacs

(defun create-docker-terminal (buffer-name) (interactive "sshell name: ") (ansi-term "~/docker/launch.sh") (rename-buffer buffer-name t)) (global-set-key (kbd "C-c d") 'create-docker-terminal)

In your launch.sh

docker run -u user -i -t -v local-dir:dir-inside-container /bin/bash --rcfile your-rc-file

So you are just running docker from within emacs rather than the other way round?