Boot2Docker doesn't recognize “sudo”, “tce-load”

拈花ヽ惹草 提交于 2019-12-10 14:13:51

问题


I'm running Boot2Docker on Windows 7 (64 bit). Boot2Docker is supposed to be based on Tiny Core. I was trying to install docker-compose (a separate issue that I'm still working on), and several help topics (such as How to install docker-compose on Windows) suggested using commands involving both sudo and tce-load. Boot2Docker gives error:command not found when I try to use these commands. I've poked around in the /bin folder and sure enough, neither has a file. Other commands that I can use correctly, like the usual ls, cd, rm, etc., exist in the /bin folder. Even if Boot2Docker for some reason took out tce-load from Tiny Core (although most help posts show it working), sudo should still exist in a unix environment, no?

Is there something I need to download/install first before these commands would be available normally, or is there something going on with Boot2Docker? I'm new with using VMs so it could be something simple. I tried reinstalling and that did nothing. I've searched a lot of help topics related to docker, docker-compose, boot2docker, tiny core, and I haven't found anything.


回答1:


It turns out all I needed to do was run Boot2Docker then type boot2docker ssh. This actually connects to the Unix VM, instead of running docker commands from a Windows shell.



来源:https://stackoverflow.com/questions/31076985/boot2docker-doesnt-recognize-sudo-tce-load

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!