-
Notifications
You must be signed in to change notification settings - Fork 655
[os-vagrant] What's the suggested way to install docker-compose? #128
Comments
Just copy the docker compose binary to /opt/bin and and that to your path. /opt is persisted in the same fashion as /home. All other directories are ephemeral and will be deleted on reboot. |
@tobowers let us know if you are still having any issues and please re-open. |
But |
@ibuildthecloud What is the recommended way to append to PATH in RancherOS? |
I'm interesting on that as well as @michaellopez have you find a way to do it? |
@zot24 Yeah, just follow @ibuildthecloud's advice. I enabled
to After reboot it should be found in the PATH and available globally on your system. |
I'm not sure its the recommended way to use |
Thanks you so much @michaellopez I'll give it a try 👍 |
Just for the record @michaellopez for me I had to put it into |
@zot24 Yeah, sorry. I tend to make all my
I did place my binary in |
Thanks @michaellopez great staff appreciate the explanation! 👍 :) |
This method doesn't seem to work on RancherOS 0.5. here is what I did:
This procedure worked on 0.45. I am wondering if there is some shared lib or something that is missing. Anybody else seeing this? |
@mmacfadden - I'm seeing it as well. |
FYI, switching to the fedora console solved the problem. FYI, I switched to the fedora console on the exact instance that was having the problem, and I ran the same executable, that was still in the home directory. I suspect that there is a missing shared library or something in the default console. |
We removed glibc in v0.5.0, so this is very like a side effect of that. Switching to any one of the alternate consoles should fix this issue. If you're using Docker Compose with RancherOS the alternate consoles will probably give you a better experience anyways. |
Yeah, that is what I found. Eventually we will use compose from outside of RancherOS (or some other thing completely) and use RahncerOS as a docker host, as intended. For now we need the ability to use compose internally, and switching to the fedora console worked just fine. @joshwget FYI switching to the centos console failed and complained about missing images on docker.io. |
Use host pid namespace for rancher agent
you can run compose in rancheros as container
|
mudrii - Thanks for that - I really like your approach. Question - I wanted to call 'docker-compose up -d' in a script... but it doesn't recognise the command. Any idea how I can get round that? It works from the command line just fine, it's just the script is obviously calling it differently and I'm not advanced enough to know why. Thanks |
Hello!
Rancher os looks great. I'd like to give it a quick try for our infrastructure which uses docker-compose. What's the "right way" to install something like docker-compose in rancher? Installing it to /usr/bin feels wrong in rancher. However, having docker-compose in a container also feels a little weird too.
The text was updated successfully, but these errors were encountered: