tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sh -c 'whoami' gives permission error in docker container and puts m


From: ParetoOptimalDev
Subject: Re: sh -c 'whoami' gives permission error in docker container and puts me in weird prompt/subshell
Date: Mon, 03 Apr 2023 17:06:36 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

This also happens with alpine using:


(async-shell-command "docker run --name alpine3173 --rm -it
alpine:3.17.3 sh" "*docker run alpine sh*")

Then from eshell in emacs -Q:


/docker:alpine3173:~ # sh -c 'whoami'
sh: cd: /root/: Permission denied
///e4fc3d163fbc33a9fa323c779a093dea#$exit
exit
/docker:alpine3173:~ # pkg install ghc
pkg: command not found
/docker:alpine3173:~ # pkg
pkg: command not found
/docker:alpine3173:~ # echo $PATH
/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
/docker:alpine3173:~ # ls /bin
sh
/docker:alpine3173:~ # ls /usr/bin
env
/docker:alpine3173:~ # ls /usr/local/bin
/usr/local/bin: No such file or directory
/docker:alpine3173:~ # 
/docker:alpine3173:~ # ls
/docker:alpine3173:~ # apk
sh: cd: /root/: Permission denied
///e4fc3d163fbc33a9fa323c779a093dea#$exit
exit



reply via email to

[Prev in Thread] Current Thread [Next in Thread]