[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] How to execute sudo command in Docker container with Org ob-shell th
From: |
stardiviner |
Subject: |
[O] How to execute sudo command in Docker container with Org ob-shell through Emacs package docker-tramp? |
Date: |
Wed, 25 Jul 2018 19:53:43 +0800 |
User-agent: |
mu4e 1.1.0; emacs 26.1 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [O] How to execute sudo command in Docker container with Org ob-shell through Emacs package docker-tramp?,
stardiviner <=