Skip to content

Commit ebceca8

Browse files
authored
Fixes the issue of Mount denied - Path /etc/localtime is not shared from OS X and is not known to Docker. One needs to create file /etc/timezone and add `America/New_york`
1 parent dca99d3 commit ebceca8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docker-compose.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ services:
1313
- ./files/password:/root/files/password:ro
1414
- ./files/genesis.json:/root/files/genesis.json:ro
1515
- ./files/keystore:/root/.ethereum/devchain/keystore:rw
16-
- /etc/localtime:/etc/localtime:ro
16+
- ~/etc/timezone:/etc/localtime:ro
17+
# - /etc/localtime:/etc/localtime:ro
1718
ports:
1819
- "30303:30303"
1920
- "30303:30303/udp"
@@ -29,7 +30,8 @@ services:
2930
- ./files/password:/root/files/password:ro
3031
- ./files/genesis.json:/root/files/genesis.json:ro
3132
- ./files/keystore:/root/.ethereum/devchain/keystore:rw
32-
- /etc/localtime:/etc/localtime:ro
33+
- ~/etc/timezone:/etc/localtime:ro
34+
# - /etc/localtime:/etc/localtime:ro
3335
command: '--datadir=~/.ethereum/devchain --rpccorsdomain="*" --networkid=456719 --rpc --bootnodes="enode://288b97262895b1c7ec61cf314c2e2004407d0a5dc77566877aad1f2a36659c8b698f4b56fd06c4a0c0bf007b4cfb3e7122d907da3b005fa90e724441902eb19e@XXX:30303"'
3436
netstats:
3537
build: eth-netstats
@@ -38,6 +40,7 @@ services:
3840
environment:
3941
- WS_SECRET=eth-net-stats-secret
4042
volumes:
41-
- /etc/localtime:/etc/localtime:ro
43+
- ~/etc/timezone:/etc/localtime:ro
44+
# - /etc/localtime:/etc/localtime:ro
4245
ports:
4346
- "3000:3000"

0 commit comments

Comments
 (0)