Skip to content

Instantly share code, notes, and snippets.

@lemenkov
Last active August 29, 2015 14:09
Show Gist options
  • Save lemenkov/1aecc2d832da49198fe3 to your computer and use it in GitHub Desktop.
Save lemenkov/1aecc2d832da49198fe3 to your computer and use it in GitHub Desktop.
Install CouchDB in systemd' container
sudo dnf -y --releasever=21 --installroot=/srv/mycontainer --disablerepo='*' --enablerepo=fedora --enablerepo=updates --enablerepo updates-testing install systemd couchdb
sudo systemd-nspawn -D /srv/mycontainer -b
sudo systemctl -M mycontainer mask systemd-logind.service
sudo systemctl -M mycontainer mask console-getty.service
sudo systemctl -M mycontainer enable couchdb.service
sudo systemctl -M mycontainer enable systemd-networkd.service
sudo machinectl reboot mycontainer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment