Resolving docker-compose: line 1: Not: command not found error

Most probably you have used the curl command from the official docker-compose installation page. The problem is that the release you are trying to download with curl command is not available for your kernel and machine hardware. Execute:

uname -s

to check your kernel name, and

uname -m

to check your machine hardware name.

Check if a release is available at the official docker-compose releases download page.

Resolving a hanging docker-compose issue

In CentOS 7 with docker-compose of version 1.29.2 installed, there may be an issue of docker-compose hanging on docker-compose up command.

The problem may be caused by the low amount of available entropy. In order to check the amount of available entropy in your system, execute:

cat /proc/sys/kernel/random/entropy_avail

If the value is smaller than 1000, the amount of available entropy should be increased by taking these steps:

  1. Install epel-release package:
sudo yum -y install epel-release
  1. Install haveged package:
sudo yum -y install haveged
  1. Enable and start haveged service:
sudo systemctl enable --now haveged

If you check the amount of available entropy now, you can see that it has increased.

Check additional information about using haveged on virtual machines here.