Docker Community Forums

Share and learn in the Docker community.

How to get access to php.ini Part 2

I went through this thread which was closed with a working solution

I replaced my docker-compose.yml with the solution.
It didn’t work for me.
dave@DESKTOP-9H3JVH9:~/docker$ docker-compose up -d ERROR: yaml.scanner.ScannerError: mapping values are not allowed here in “./docker-compose.yml”, line 3, column 9
I have no clue what the error means (sorry, pretty new at this).
Here is my docker info:
Client: Docker Engine - Community Version: 19.03.12 API version: 1.40 Go version: go1.13.10 Git commit: 48a66213fe Built: Mon Jun 22 15:45:44 2020 OS/Arch: linux/amd64 Experimental: false

Any ideas?
Thanks - Dave

Your issue is with the format of your file. I will suggest you use a yaml validator which you can find by googling those terms. For example from my findings, this stackoverflow indicates there is a feature in docker_compose to validate docker-compose files:

docker-compose config


Thanks - I had found that and it helped, thanks for the reply

Navigate to the directory where you will either save or edit the PHP. INI file and then select the file and use the Code Editor. To open the file, you can click on it to select the file and then click on the Code Editor icon in the menu bar of the File Manager.