/usr/local/bin/docker-compose: /usr/local/bin/python: bad interpreter: No such file or directory

Discussion about Docker
Locked
User avatar
mfareedh9
Posts: 2
Joined: 31 Mar 2021, 02:32

/usr/local/bin/docker-compose: /usr/local/bin/python: bad interpreter: No such file or directory

Post by mfareedh9 »

Hi all,

I am trying to learn how to use dockers and I am beginner so any help is appreciated. I have been trying to use the docker-compose command and all I get is this error message : "/usr/local/bin/docker-compose: /usr/local/bin/python: bad interpreter: No such file or directory". I am not sure if I am doing anything wrong. Below is where I have stored my docker-compose.YAML file

appdata/docker/containers/caddy

Below is the configuration file :

version: "3.7"
services:
caddy:
container_name: "caddy"
image: "caddy:latest"
ports:
- "80:80"

Bwlow is how I access my TNAS:



Maybe I am missing something obvious or I am meant to install extra components. So far I only have docker application installed.

Thanks,
Fareedh
Attachments
Capture.PNG
User avatar
mfareedh9
Posts: 2
Joined: 31 Mar 2021, 02:32

Re: /usr/local/bin/docker-compose: /usr/local/bin/python: bad interpreter: No such file or directory

Post by mfareedh9 »

GUYS!!!

IGNORE ME, I am so dumb. Before running docker-compose command; you need to have python installed on Terramaster. To do this, simply logon to your TOS -> Applications -> Search for python and Install. Once done, docker-compose should work. See my attached image.
Locked