Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

chris6789's avatar

/usr/local/bin/docker-compose: line 1: Not: command not found

Hello,

Can't get started with Laravel. There's a 99.9% chance it is user error but I've spent a few hours on it already and I don't know what it could be.

I'm running Ubuntu 20.04.2 LTS and thought I was following the installation guide at laravel . com/docs/8.x#getting-started-on-linux but this is what I see after running ./vendor/bin/sail up.

$ ./vendor/bin/sail up
/usr/local/bin/docker-compose: line 1: Not: command not found
/usr/local/bin/docker-compose: line 1: Not: command not found
/usr/local/bin/docker-compose: line 1: Not: command not found

I have no idea what's going on.

$ locate docker-compose
/usr/local/bin/docker-compose

Looks like docker-compose is found.

Is Docker required? It seems like it's making the whole process overly complex. What documentation should I be following?

Thanks!

0 likes
4 replies
chris6789's avatar

@frankielee I don't quite understand what you're suggesting to be the fix. I'm asking what this error means /usr/local/bin/docker-compose: line 1: Not: command not found.

chris6789's avatar
chris6789
OP
Best Answer
Level 1

I've figured it out. Looks like I made a mistake when installing docker-compose with this command: sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose.

Long story short, I made a mistake in the URL and so what was downloaded was "Not Found" and not the real file. I tried again and things are working now.

hamid_imomov's avatar

Latest version:

sudo curl -L "https://github.com/docker/compose/releases/download/v2.11.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

I had a such problem too. I think I got this error after that when I deleted Docker Desktop and all its related files after the unsuccessful installation. I'm using Ubuntu and my CPU doesn't support KVM and because of it, I deleted the Docker Desktop.

Please or to participate in this conversation.