emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to execute sudo command in Docker container with Org ob-shell through Emacs package docker-tramp?
@ 2018-07-25 11:53 stardiviner
  0 siblings, 0 replies; only message in thread
From: stardiviner @ 2018-07-25 11:53 UTC (permalink / raw)
  To: org-mode


I execute the following src block example, but it does not work as I
expected.

#+begin_src sh :dir /docker:ubuntu:/root|sudo::
sudo echo "hello, world" > kk
cat kk
#+end_src

I think the TRAMP multiple hops need hostname in sudo:<hostname>:, but I don't know how to specify Docker hostname in this place.

--
[ stardiviner ] don't need to convince with trends.
       Blog: https://stardiviner.github.io/
       IRC(freenode): stardiviner
       GPG: F09F650D7D674819892591401B5DF1C95AE89AC3

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-07-25 11:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-25 11:53 How to execute sudo command in Docker container with Org ob-shell through Emacs package docker-tramp? stardiviner

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).