subuser-security / subuser

Run programs on linux with selectively restricted permissions.
http://subuser.org
GNU Lesser General Public License v3.0
888 stars 65 forks source link

crash while trying subuser on fedora 20 #161

Closed jave closed 10 years ago

jave commented 10 years ago

./subuser install vim vim Error: No such image or container: subuser-vim Error: No such image or container: subuser-vim The following programs will be installed. vim Installing vim ... Uploading context 2.56 kB Uploading context Step 0 : FROM ubuntu ---> 5cf8fd909c6c Step 1 : ENV LANG C.UTF-8 ---> Running in 36f1b1943c2c ---> 55efe2255600 Removing intermediate container 36f1b1943c2c Step 2 : RUN apt-get update -yqq ---> Running in 6a20cecbabe9 ---> 29875d14c50f Removing intermediate container 6a20cecbabe9 Step 3 : RUN TERM=linux apt-get install -yqq vim ---> Running in b82c5bd372a7 dpkg-preconfigure: unable to re-open stdin: No such file or directory Selecting previously unselected package libgpm2:amd64. (Reading database ... 11518 files and directories currently installed.) Preparing to unpack .../libgpm2_1.20.4-6.1_amd64.deb ... Unpacking libgpm2:amd64 (1.20.4-6.1) ... Selecting previously unselected package libpython2.7-minimal:amd64. Preparing to unpack .../libpython2.7-minimal_2.7.6-8_amd64.deb ... Unpacking libpython2.7-minimal:amd64 (2.7.6-8) ... Selecting previously unselected package libpython2.7-stdlib:amd64. Preparing to unpack .../libpython2.7-stdlib_2.7.6-8_amd64.deb ... Unpacking libpython2.7-stdlib:amd64 (2.7.6-8) ... Selecting previously unselected package libpython2.7:amd64. Preparing to unpack .../libpython2.7_2.7.6-8_amd64.deb ... Unpacking libpython2.7:amd64 (2.7.6-8) ... Selecting previously unselected package vim-runtime. Preparing to unpack .../vim-runtime_2%3a7.4.052-1ubuntu3_all.deb ... Adding 'diversion of /usr/share/vim/vim74/doc/help.txt to /usr/share/vim/vim74/doc/help.txt.vim-tiny by vim-runtime' Adding 'diversion of /usr/share/vim/vim74/doc/tags to /usr/share/vim/vim74/doc/tags.vim-tiny by vim-runtime' Unpacking vim-runtime (2:7.4.052-1ubuntu3) ... Selecting previously unselected package vim. Preparing to unpack .../vim_2%3a7.4.052-1ubuntu3_amd64.deb ... Unpacking vim (2:7.4.052-1ubuntu3) ... Setting up libgpm2:amd64 (1.20.4-6.1) ... Setting up libpython2.7-minimal:amd64 (2.7.6-8) ... Setting up libpython2.7-stdlib:amd64 (2.7.6-8) ... Setting up libpython2.7:amd64 (2.7.6-8) ... Setting up vim-runtime (2:7.4.052-1ubuntu3) ... Processing /usr/share/vim/addons/doc Setting up vim (2:7.4.052-1ubuntu3) ... update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vim (vim) in auto mode update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vimdiff (vimdiff) in auto mode update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rvim (rvim) in auto mode update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/rview (rview) in auto mode update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/vi (vi) in auto mode update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/view (view) in auto mode update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/ex (ex) in auto mode update-alternatives: using /usr/bin/vim.basic to provide /usr/bin/editor (editor) in auto mode Processing triggers for libc-bin (2.19-0ubuntu6) ... ---> e74048810f7c Removing intermediate container b82c5bd372a7 Successfully built e74048810f7c Traceback (most recent call last): File "/mnt/LogVol00/home/joakim/current/build_pristine/subuser/logic/subuserCommands/install", line 27, in subuserlib.install.installProgramAndDependencies(program, options.useCache) File "/mnt/LogVol00/home/joakim/current/build_pristine/subuser/logic/subuserCommands/subuserlib/install.py", line 114, in installProgramAndDependencies installProgram(program, useCache) File "/mnt/LogVol00/home/joakim/current/build_pristine/subuser/logic/subuserCommands/subuserlib/install.py", line 92, in installProgram imageID = dockerImages.getImageID("subuser-"+programName) File "/mnt/LogVol00/home/joakim/current/build_pristine/subuser/logic/subuserCommands/subuserlib/dockerImages.py", line 44, in getImageID return imageInfo["Id"] KeyError: 'Id'

timthelion commented 10 years ago

Heh, we just changed this today https://github.com/subuser-security/subuser/pull/160 . The thing is, that docker used to call that field "id" and then they renamed it to "Id". So you need to either upgrade docker or downgrade subuser... You can do the latter with:

git checkout 22e5878636c7e4a5e4ff8ad8ed8430ee3c850751

Sorry for the trouble,

Tim

Sepero commented 10 years ago

I submitted a patch to resolve this.

timthelion commented 10 years ago

Thanks @Sepero