boot2docker on windows missing apt-get / package manager

谁说我不能喝 提交于 2019-12-09 14:20:42

问题


I'm in boot2docker. I'm not entirely sure I understand it completely, but it seems to be needed for a project I'm on.

I've ssh'd in, and I tried to do a make on our project, but I got

make: not found

Then I tried a:

apt-get install make

And got

apt-get: not found

Tried googling, but couldn't find anything about that, or any package manager.

Any suggestions on how to install anything in boot2docker?

EDIT: When I asked this I misunderstood how boot2docker and docker worked hand in hand. There is actually a package manager (tce-load) that allows install of packages, but really, it shouldn't be used and anything involving a project using docker should be using a docker container within boot2docker that has the build tools inside of that. Although I did find tce-load useful installing nano, since I'm not a fan of vi and that's occationaly useful.


回答1:


Seems boot2docker uses Tiny Linux which has its own package manager called "tce-load". There's a list of packages for it here:

http://distro.ibiblio.org/tinycorelinux/tcz_2x.html

There's everything that's needed to make or whatever located there.




回答2:


You should not be installing anything on the boot2docker vm as that gets deleted and reset often. You should install any tools inside a docker container running on the boot2docker vm.




回答3:


Only linux can run docker so when running on osx or windows you must use boot2docker. boot2docker is just running a linux vm that has docker installed. Once you are using boot2docker you use docker like you would normally.

The boot2docker vm is not where you should be installing things, what you should be doing is running a container that has the programs you need installed. This can be accomplished by finding a useful image from the docker registry or by making your own docker image.



来源:https://stackoverflow.com/questions/26621810/boot2docker-on-windows-missing-apt-get-package-manager

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