docker exec issue
purofle opened this issue · 2 comments
purofle commented
sudo docker start termux-x86_64
termux-x86_64
sudo docker exec -it termux-x86_64 /data/data/com.termux/files/usr/bin/login
Error response from daemon: Container a0c723eaa57f6a537c6d9d77c88750ec34eb42b4febb8a40b15eb277a7bd408b is not running
Deleted user commented
Sorry, but I can't reproduce the issue.
Create container:
docker run --name termux-x86_64 --detach -it xeffyr/termux:x86_64
Stop container:
docker stop termux-x86_64
Start container:
docker start termux-x86_64
Exec a command within container:
docker exec -it termux-x86_64 /data/data/com.termux/files/usr/bin/login
So here is what I have when running your commands:
~ $ docker start termux-x86_64
termux-x86_64
~ $ docker exec -it termux-x86_64 /data/data/com.termux/files/usr/bin/login
Welcome to Termux!
Wiki: https://wiki.termux.com
Community forum: https://termux.com/community
Gitter chat: https://gitter.im/termux/termux
IRC channel: #termux on freenode
Working with packages:
* Search packages: pkg search <query>
* Install a package: pkg install <package>
* Upgrade packages: pkg upgrade
Subscribing to additional repositories:
* Root: pkg install root-repo
* Unstable: pkg install unstable-repo
* X11: pkg install x11-repo
Report issues at https://termux.com/issues
Updating static DNS:
35.157.128.28 dl.bintray.com
172.67.162.138 termux.net
104.31.90.132 termux.org
185.76.64.26 grimler.se
95.216.69.249 termux.mentality.rip
134.249.123.112 main.termux-mirror.ml
134.249.123.112 games.termux-mirror.ml
134.249.123.112 root.termux-mirror.ml
134.249.123.112 science.termux-mirror.ml
134.249.123.112 unstable.termux-mirror.ml
134.249.123.112 x11.termux-mirror.ml
134.249.123.112 its-pointless.termux-mirror.ml
185.199.108.153 its-pointless.github.io
140.82.121.3 github.com
140.82.121.9 codeload.github.com
140.82.121.4 gist.github.com
151.101.0.133 gist.githubusercontent.com
151.101.0.133 raw.githubusercontent.com
151.101.192.223 pypi.org
151.101.1.63 test.pypi.org
3.12.224.191 upload.pypi.org
151.101.1.63 pythonhosted.org
151.101.1.63 files.pythonhosted.org
151.101.1.63 test-files.pythonhosted.org
151.101.128.70 rubygems.org
$
Deleted user commented
The reason why it is not working for you is because you have probably executed
docker run --name termux-x86_64 --detach xeffyr/termux:x86_64
without options -i
and -t
.