tailhook / vagga

Vagga is a containerization tool without daemons
http://vagga.readthedocs.org
MIT License
1.86k stars 96 forks source link

Command "/vagga/bin/apk" "--allow-untrusted" "--initdb" "add" "--force" "/vagga/bin/alpine-keys.apk"; environ[4]>: error when executing: No such file or directory (os error 2)? #475

Closed biluohc closed 6 years ago

biluohc commented 6 years ago

Hi, I got this error when running every example?

My system is openSUSE 42.3(Linux4.4.92 x86-64).

/home/mxo/Downloads/cache/vagga/examples/firefox
 D/c/vagga/e/firefox ╍ vagga firefox
ERROR:vagga::builder: Error building container "browser": step Ubuntu("xenial") failed: Error running <Command "/vagga/bin/apk" "--allow-untrusted" "--initdb" "add" "--force" "/vagga/bin/alpine-keys.apk"; environ[4]>: error when executing: No such file or directory (os error 2)
ERROR:vagga::wrapper: Error executing _build: Builder exited with code 1
Command <Command "/proc/self/exe" "__wrapper__" "_build" "browser"; environ[4]; uid_map=[UidMap { inside_uid: 0, outside_uid: 1000, count: 1 }, UidMap { inside_uid: 1, outside_uid: 100000, count: 65535 }]; gid_map=[GidMap { inside_gid: 0, outside_gid: 100, count: 1 }, GidMap { inside_gid: 1, outside_gid: 100000, count: 65535 }]> exited with code 124
 D/c/vagga/e/firefox                                                                                                                              (121) 
tailhook commented 6 years ago

You need to run vagga from a directory which has also busybox and apk. It looks like you don't. Do you? This is the reason why cargo install doesn't work for vagga.

You need to use vagga (download binary) to build vagga, or try make in the source folder, and you can take a look at install.sh to see what's should be installed.

biluohc commented 6 years ago

Oh, thanks you very much.