Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why can't I run "docker init"? Getting "'init' is not a docker command"

Tags:

docker

I am trying to set up my app as a container. I run docker init in my terminal on my Mac, and I get

docker:'init' is not a docker command.

When I run docker --version, I get Docker version 20.10.8, build 3967b7d

I can also confirm that Docker is running.

like image 991
kickinchicken Avatar asked Nov 23 '25 17:11

kickinchicken


2 Answers

to use docker init you need Docker Desktop 4.26.1 and later.

like image 110
Abdessamad EL Avatar answered Nov 25 '25 07:11

Abdessamad EL


All you need to do is to download the "Docker Desktop" application. After that, you can re-run the command without any errors.

like image 41
Ahmed Naeem Avatar answered Nov 25 '25 05:11

Ahmed Naeem



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!