Run docker-compose in RHEL
Contents
I was trying to run ‘docker-compose’ in our environment today, but found following message from RedHat officially:
So we are on our own…
Get the latest version from Github: [https://github.com/docker/compose/releases]
Same as usual, link it to /usr/local/bin/docker-compose
Give it exe permission…
However, here is the problem happening in RHEL 7.4:
|
|
I tried to disable SElinux
, not working…
Finally, I came across this github issue and I tried one of the workarounds which worked in my instance.
Solution was to remount tmp with exec permission by executing :
|
|
Or have following ansible block:
|
|
Problem resolved.
Happy docker-compose~
River