title: Ansible AWX installation failed because of docker-compose
body: <p>I have been trying to install AWX on Redhat 7 but I am getting the following error, I looked around and see some suggestion to uninstall and install the docker-compose, tried whatever I could but nothing worked.</p>
  <pre><code>    TASK [local_docker : Run migrations in task container] *************************************************************
  fatal: [localhost]: FAILED! =&gt; {&quot;changed&quot;: true, &quot;cmd&quot;: &quot;docker-compose run --rm --service-ports task awx-manage migrate --no-input&quot;, &quot;delta&quot;: &quot;0:00:00.003315&quot;, &quot;end&quot;: &quot;2021-02-02 00:25:41.803121&quot;, &quot;msg&quot;: &quot;non-zero return code&quot;, &quot;rc&quot;: 127, &quot;start&quot;: &quot;2021-02-02 00:25:41.799806&quot;, &quot;stderr&quot;: &quot;/bin/sh: docker-compose: command not found&quot;, &quot;stderr_lines&quot;: [&quot;/bin/sh: docker-compose: command not found&quot;], &quot;stdout&quot;: &quot;&quot;, &quot;stdout_lines&quot;: []}
  
  PLAY RECAP *********************************************************************************************************
  localhost                  : ok=15   changed=3    unreachable=0    failed=1    skipped=72   rescued=0    ignored=1 
  
  </code></pre>
  <p>This is bit strange I try to run the docker-compose -v and worked but when I do sudo docker-compose it doesnt work</p>
  <pre><code>$ docker-compose --version
  docker-compose version 1.24.0, build 0aa59064
  </code></pre>
  <pre><code>$ sudo docker-compose --version
  sudo: docker-compose: command not found
  </code></pre>
  <p>you see it works without sudo fine, I dont know if this seems to be related to the error I am seeing when installing the awx.</p>