From mboxrd@z Thu Jan 1 00:00:00 1970 From: stardiviner Subject: 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 Message-ID: <877eljh6pk.fsf@gmail.com> Reply-To: numbchild@gmail.com Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32811) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fiIMf-0000HS-AJ for emacs-orgmode@gnu.org; Wed, 25 Jul 2018 07:54:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fiIMc-0008FF-Ca for emacs-orgmode@gnu.org; Wed, 25 Jul 2018 07:53:57 -0400 Received: from [115.226.43.28] (port=55073 helo=dark.localdomain) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fiIMY-00085v-EY for emacs-orgmode@gnu.org; Wed, 25 Jul 2018 07:53:54 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" 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::, 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