nlf / dlite

The simplest way to use Docker on OS X

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

2.0.0-beta7: Modifying /etc/exports: ERROR!

herrbischoff opened this issue · comments

Issue

dlite has not been installed on this machine before.

❯ dlite init

Virtual machine hostname [local.docker]:
Disk size (in gigabytes) [20]:
CPU cores to allocate to VM [2]:
Memory to allocate to VM (in gigabytes) [2]:
DNS server [192.168.64.1]:
Docker version [latest]:
Extra flags to pass to the docker daemon:

Saving configuration: done
Creating ssh key pair: done
Adding host to ssh config: done
Creating tool binaries: done
Creating disk: done
Downloading OS: done

Next we'll run a few steps that require sudo, you may be prompted for your password.
Password:
Creating /etc/resolver/docker: done
Modifying /etc/exports: ERROR!

After that:

❯ dlite start
Starting the virtual machine: ERROR!
Post http://127.0.0.1:1050/start: dial tcp 127.0.0.1:1050: getsockopt: connection refused

Environment

❯ sw_vers
ProductName:    Mac OS X
ProductVersion: 10.12.1
BuildVersion:   16B2555
commented

what's the contents of your /etc/exports file?

# BEGIN: dlite
/Users -network 192.168.64.0 -mask 255.255.255.0 -alldirs -maproot=root:wheel
# END: dlite
commented

old exports, sorry about that. that file is a particularly difficult one to manage. clear it out so it's an empty file, save and exit, then re-run dlite init and you should be all set

I have just deleted the entries from the file, ran dlite again and this time, installation works:

❯ dlite init
WARNING: It appears you have already initialized dlite. Continuing will destroy your current virtual machine and its configuration.
Continue? (y/n): y

Virtual machine hostname [local.docker]:
Disk size (in gigabytes) [20]:
CPU cores to allocate to VM [2]:
Memory to allocate to VM (in gigabytes) [2]:
DNS server [192.168.64.1]:
Docker version [latest]:
Extra flags to pass to the docker daemon:

Saving configuration: done
Creating ssh key pair: done
Adding host to ssh config: done
Creating tool binaries: done
Creating disk: done
Downloading OS: done

Next we'll run a few steps that require sudo, you may be prompted for your password.
Creating /etc/resolver/docker: done
Modifying /etc/exports: done
Installing daemon: done

The daemon never got installed I guess. ;)

commented

yeah, i should make failure to add the export a non-critical error so that it continues the installation and you can fix the exports later

Sounds good. A message with the line to be added would be nice for copy and paste.

Also: I could have sworn that dlite has never been installed on this machine before. Still, the /etc/exports clearly showed the opposite was the case.

Thanks for your quick response! Now it's working.