Closed timthelion closed 7 years ago
When I tried to install SubUser I followed this instructions http://subuser.org/installation.html#install-with-pip-stable-version.
Install seems ok, but now when I try to run subuser list available
in another terminal window I am asked for my sudo password... why?
The instructions to run the above command don't say that sudo is needed http://subuser.org/tutorial-use.html, but If I enter the password then i get:
Now we have an exception because this folder /home/exadra37/.subuser/registry
is created with root permissions due to the requested sudo password, but is trying to access it without sudo.
Now if I try to install Vim as suggested in the quick start tutorial I also get the same type of error in this topic:
Thank you for the high quality bug report! Wow! Did you use gimp to make those screenshots?
This is definitely a bug, but will require some debugging. The reason for sudo, is that subuser needs to communicate with Docker and Docker requires administrative permissions to setup and launch conatiners. There are two ways to access the Docker daemon, one is to use sudo, and the other is to make your user a member of the docker group. Being a member of the docker group is the same as having root access, where-as with sudo, you only grant subuser access to root. So new in 0.6 is that we support using sudo. If you add yourself to the docker group, you won't be prompted for your password anymore. Evidently, this new sudo support has caused a bug when creating a new registry, and I will have to solve that.
Here is the bug: https://github.com/subuser-security/subuser/blob/master/logic/subuserlib/classes/registry.py#L64 I need to change that to use this https://github.com/subuser-security/subuser/blob/master/logic/subuserlib/classes/endUser.py#L77
I am currently at FOSDEM. I'll have to wait till I get home to release a fix.
@timthelion cool you found it ;)
That question about sudo was my tired brain asking... I completely forget about subuser talking with Docker :(
Print screens done with shift+prtsc
.
Hi, I've uploaded what I beleive to be correct code. Can you please delete your ~/.subuser
directory, pull from master, and test this before I release the fix?
I can install it, but needs sudo to install, once the dir to install it is not a USER dir /usr/local/lib/python3.4/dist-packages/
...
In http://subuser.org/installation.html#install-from-git-development-version you need to add that we need to run sudo python3 setup.py install
Thanks for testing. Does subuser list available
work? The reason why I don't tell the user to use setup.py install
is that I find running subuser in place is better for development due to the fact that when you change the code you don't need to install again ;). I have added a note about the possibility of using setup.py though.
Cool you have added the note about Git installation ;)
It works:
Totally off topic, but it's cool how you have your shell prompt set to show which branch you are on in git :)
I always use ZSH shell with https://github.com/robbyrussell/oh-my-zsh
Thanks for the link. I use fish which is like ZSH but for people who are too stupid/lazy to edit config files.
No idea: