Can't Install: KeyError: 'getgrnam(): name not found: docker'
tcfuji opened this issue · comments
Here is my output:
$ sudo ferry install
Password:
03/14/2014 07:27:49 PM checking for btrfs
cat: /etc/mtab: No such file or directory
03/14/2014 07:27:50 PM nohup docker-ferry -d -H=unix:////var/run/ferry.sock -g=/var/lib/ferry -p=/var/run/ferry.pid --icc=true 1>/var/lib/ferry/docker.log 2>&1 &
03/14/2014 07:27:52 PM using key directory ~/anaconda/envs/FerryEnv/lib/python2.7/site-packages/ferry/data/key
Traceback (most recent call last):
File "~/anaconda/envs/FerryEnv/bin/ferry", line 9, in <module>
load_entry_point('ferry==0.1.20', 'console_scripts', 'ferry')()
File "~/anaconda/envs/FerryEnv/lib/python2.7/site-packages/ferry/cli/cli.py", line 443, in main
msg = cli.dispatch_cmd(c, all_cmds[c], options)
File "~/anaconda/envs/FerryEnv/lib/python2.7/site-packages/ferry/cli/cli.py", line 379, in dispatch_cmd
msg = self.installer.install(args)
File "~/anaconda/envs/FerryEnv/lib/python2.7/site-packages/ferry/install.py", line 106, in install
_touch_file(DEFAULT_DOCKER_KEY, GLOBAL_KEY_DIR, root=True)
File "~/anaconda/envs/FerryEnv/lib/python2.7/site-packages/ferry/install.py", line 47, in _touch_file
gid = grp.getgrnam("docker").gr_gid
KeyError: 'getgrnam(): name not found: docker'
I am using OS X 10.9 and installed Docker and Boot2Docker using Homebrew.
Hey, thanks for trying out Ferry. The installation script assumes that the "docker" group exists (which is recommended, but not required to use Docker). So in the short run, I would go ahead and create the docker group and add your primary user to that group. Afterwards, perform a sudo ferry clean
followed by sudo ferry install
. I'll also fix the installation script to remove this assumption.
How would you do that on OS X? There do not seem to be any groupadd
, usermod
, or service
, commands on the terminal.
I haven't used boot2docker before, so let me try to recreate the environment and back to you.
@TFGIT I just installed boot2docker, and it appears to be a pretty stripped down environment (no python, pip). Ferry also has a 64-bit requirement (boot2docker is 32-bit) which will require some work on my part. I do intend on eventually getting Ferry working in this environment, but you aren't going to be able to use boot2docker right now ;(
In the meantime, my suggestion is to install a desktop or server Ubuntu image in VirtualBox and install Docker manually. You can find installation instructions for Ubuntu on the Docker homepage (there's also a link from Ferry's homepage). It's not very complicated, but if you need help shoot me an email (jlh AT opencore DOT io).