kerberos-io / kerberos-docker

Run Kerberos Open Source inside a docker container.
http://doc.kerberos.io/opensource/installation#docker
103 stars 31 forks source link

Unable to docker-compose the docker-compose.yml #7

Closed eji133 closed 6 years ago

eji133 commented 6 years ago

Hi, I am a newbie. I learn to install and run kerberosio on top Docker on my Raspberry Pi B. Unfortunately, all my attempts were stuck on single problem. There were error: ERROR: In file '.docker-compose.yml', service 'environment' must be a mapping not an array.

Attempts:

  1. Flash SD Card using HypriotOS then: 1.1. install kerberos-io as per : https://medium.com/@vpetersson/using-kerberos-io-with-docker-and-multiple-cameras-9eee66dcae31

    not succeed: ERROR: In file '.cam0.yml', service 'links' must be a mapping not an array.

    1.2. install kerberos-io as per : https://doc.kerberos.io/2.0/installation/Multi-camera/Docker

    not succeed: ERROR: In file '.docker-compose.yml', service 'links' must be a mapping not an array.

    1.3. install kerberos-io as per : https://doc.kerberos.io/2.0/installation/Docker

    not succeed: ERROR: In file '.docker-compose.yml', service 'environment' must be a mapping not an array.

  2. Flash SD Card using Raspbian Jessie Lite, install Docker, install Docker-compose then: 2.1. install kerberos-io as per : https://medium.com/@vpetersson/using-kerberos-io-with-docker-and-multiple-cameras-9eee66dcae31

    not succeed: ERROR: In file '.cam0.yml', service 'links' must be a mapping not an array.

    2.2. install kerberos-io as per : https://doc.kerberos.io/2.0/installation/Docker

    not succeed: ERROR: In file '.docker-compose.yml', service 'environment' must be a mapping not an array.

  3. Install Docker on Windows7 then install kerberos-io as per https://doc.kerberos.io/2.0/installation/Docker

    not succeed: ERROR: In file '.docker-compose.yml', service 'environment' must be a mapping not an array.

Would you please show me what need to be corrected in order to run this kerberos-io on my Raspberry Pi? I am using the latest Raspbian Jessie Lite image releases and update it. I ensured the Docker installation running well when it succeed running busybox image and hello-world.

eji133 commented 6 years ago

Update. Problem solved. Cause of problem was due to I removed the "tab" in the code. So there were no indentation in the code. I should replace "tab" into "space". Using "space" as indentation solve the problem. I will close this issue. Thank you.