groupon / ansible-silo

Ansible in a self-contained environment via Docker.
https://groupon.github.io/ansible-silo
BSD 3-Clause "New" or "Revised" License
204 stars 27 forks source link

Unable to install on Ubuntu 16.10 #57

Open jochenparm opened 6 years ago

jochenparm commented 6 years ago

Hi, when running the installation commands you provide, I get the following error message:

docker run --interactive --tty --rm --volume "/usr/local/bin:/silo_install_path" grpn/ansible-silo:2.1.0 --install Installing from ansible-silo 2.1.0:

Do you have an idea what I'm missing? Is the problem my read/write access to "/usr/local/bin:/silo_install_path" ?

udondan commented 6 years ago

Sorry @jochenparm for the delay. Yes it probably is due to write permissions to /usr/local/bin.

You should be able to do it like that:

docker run --interactive --tty --rm --volume "/tmp/bin:/silo_install_path" grpn/ansible-silo:2.1.0 --install
sudo mv /tmp/bin/* /usr/local/bin

Let me know if that works for you or not.

This should probably be mentioned in the docs.

espoelstra commented 5 years ago

+1 for not abusing --privileged and leaving it to the user to have sudo rights to perform the move. That would allow prompting from mv in the future if the file existed already and the user was going to overwrite it.