dockercomposeymlテスト
7811 ワード
ucsmy@QKTEST21191:~$ vim docker-compose.yml
version: '2'
services:
geth:
image: daocloud.io/ubuntu/node
container_name:ethereumnode
commond:geth --datadir./data --networkid 12345 --rpc console 2>>geth.log
volumes:
- ./files/password:/root/files/password:ro
- /usr/local/:/blockchain
ports:
- "30303:30303"
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"docker-compose.yml" [New] 11L, 309C written
ucsmy@QKTEST21191:~$
ucsmy@QKTEST21191:~$
ucsmy@QKTEST21191:~$ version: '2'
services:
geth:
image: daocloud.io/ubuntu/node
version:: command not found
container_name:ethereumnode
commond:geth --datadir./data --networkid 12345 --rpc console 2>>geth.log
ucsmy@QKTEST21191:~$ services:
volumes:
- ./files/password:/root/files/password:ro
- /usr/local/:/blockchain
ports:
- "30303:30303"services:: command not found
ucsmy@QKTEST21191:~$ geth:
geth:: command not found
ucsmy@QKTEST21191:~$ image: daocloud.io/ubuntu/node
No command 'image:' found, did you mean:
Command 'imagej' from package 'imagej' (universe)
Command 'imagen' from package 'hevea' (main)
image:: command not found
ucsmy@QKTEST21191:~$ container_name:ethereumnode
container_name:ethereumnode: command not found
ucsmy@QKTEST21191:~$ commond:geth --datadir./data --networkid 12345 --rpc console 2>>geth.log
ucsmy@QKTEST21191:~$ volumes:
volumes:: command not found
ucsmy@QKTEST21191:~$ - ./files/password:/root/files/password:ro
-: command not found
ucsmy@QKTEST21191:~$ - /usr/local/:/blockchain
-: command not found
ucsmy@QKTEST21191:~$ ports:
ports:: command not found
ucsmy@QKTEST21191:~$ - "30303:30303"
-: command not found
ucsmy@QKTEST21191:~$
ucsmy@QKTEST21191:~$
ucsmy@QKTEST21191:~$ docker-compose up -d
ERROR: yaml.scanner.ScannerError: while scanning a simple key
in "./docker-compose.yml", line 5, column 7
could not found expected ':'
in "./docker-compose.yml", line 6, column 7
ucsmy@QKTEST21191:~$
ucsmy@QKTEST21191:~$
ucsmy@QKTEST21191:~$