refer to the example of the official document part3 and execute the docker stack deploy-c docker-composer. Yml getstartedlab
with the error message as follows:
cappuccinooos-MacBook-Pro:part3 cappuccinooo$ docker stack deploy -c docker-compose.yml getstartedlab
yaml: line 1: mapping values are not allowed in this context
from the error message can know, is docker – compose. Yml file format has a problem, yml file has strict requirements on the blank space indentation, direct copy the contents of the official document is not enough, the search on the net have tools to online check yml file format, format errors will give corresponding hint, feel quite convenient, and the link below: https://www.bejson.com/validators/yaml/ p>
after modifying the docker-composer. Yml, execute the docker stack deploy-c docker-composer. Yml getstartedlab
command successfully
cappuccinooos-MacBook-Pro:part3 cappuccinooo$ docker stack deploy -c docker-compose.yml getstartedlab
Creating network getstartedlab_webnet
Creating service getstartedlab_web
div>
Read More:
- yaml.scanner.ScannerError: mapping values are not allowed here
- Compiler problem, error: ‘for’ loop initial declarations are only allowed in C99 mode
- You are not allowed to upload merges in Git push
- Annotations are not allowed here
- Solve the problem of docker error: Unsupported compose file version: 3.2
- Vue More than 1 blank line not allowed
- Errors encountered by elasticsearch in creating index and mapping
- Git push you are not allowed to upload merges
- ValueError: Integers to negative integer powers are not allowed.
- Data analysis to obtain Yahoo stock data: some problems are encountered when using panda datareader (cannot import name ‘is_ list_ Like ‘problem)
- error: ‘for‘ loop initial declarations are only allowed in C99 mode
- Error in DESeqDataSet(se, design = design, ignoreRank) : some values in assay are negative
- In thinkphp5, we encountered the problem of class’ phpoffice / phpspredsheet / spreadsheet ‘not found
- How to Fix ERROR: Couldn’t connect to Docker daemon at http+docker://localhost – is it running?
- Error: path not specified when the docker 1.7 file is uploaded to the container in CentOS
- How to Fix error: ‘for’ loop initial declarations are only allowed in C99 mode
- [Sovled] Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
- GitLab You are not allowed to push code to this project
- Solve the problem of general error: 4047 when docker installs MariaDB of nextcloud
- Unable to load file D:: program files (x86) node-v16.4.0-win-x861 because scripts are not allowed to run on this system.