Hacker News new | ask | show | jobs
by alexk 4700 days ago
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

1 comments

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