Re: Issues with docker in Fedora 30? #docker


mario.schwaiger@...
 

Looks like that the user can not access docker endpoint and also cannot even create a file when the current directory is mounted to the container, you need to fix these permission errors first.
I already assumed something like this, so I started it as root. It's weirdly causing very similar issues. In my opinion it's more a Fedora/Docker issue and not so much related to permissions. I have encountered other strange behaviours when you try to mount something into a Docker under Fedora. See the appendix to this reply. I'm getting different errors when I remove all Hyperledger-Images and try to start the test-network.
I suspect the problem might be the same cause your other attempt also had errors. I would manually mount a directory to a container and exec into it and see why there were permission errors. If you give me a bit more details about your system such as OS version, how your docker was installed and its version, and what user you are using, I probably can dig it bit further.
This is a Fedora VM (30). The Docker is installed according to the very basic tutorial: https://docs.docker.com/engine/install/fedora/
Firewall-related I'm not very skilled, so I tried to allow as much as possible. No change. Also, as alpine can ping Google I'm in the opinion it's not a firewall-issue

Appendix when running test-network up:
#########  Generating Orderer Genesis block ##############
+ configtxgen -profile TwoOrgsOrdererGenesis -channelID system-channel -outputBlock ./system-genesis-block/genesis.block
2020-08-27 12:59:35.059 UTC [common.tools.configtxgen] main -> INFO 001 Loading configuration
2020-08-27 12:59:35.085 UTC [common.tools.configtxgen.localconfig] completeInitialization -> INFO 002 orderer type: etcdraft
2020-08-27 12:59:35.085 UTC [common.tools.configtxgen.localconfig] completeInitialization -> INFO 003 Orderer.EtcdRaft.Options unset, setting to tick_interval:"500ms" election_tick:10 heartbeat_tick:1 max_inflight_blocks:5 snapshot_interval_size:16777216
2020-08-27 12:59:35.085 UTC [common.tools.configtxgen.localconfig] Load -> INFO 004 Loaded configuration: /home/user/fabric-samples/test-network/configtx/configtx.yaml
2020-08-27 12:59:35.087 UTC [common.tools.configtxgen] doOutputBlock -> INFO 005 Generating genesis block
2020-08-27 12:59:35.087 UTC [common.tools.configtxgen] doOutputBlock -> INFO 006 Writing genesis block
+ res=0
Recreating orderer.example.com ... error
Recreating peer0.org1.example.com ...
Recreating peer0.org2.example.com ...

ERROR: for orderer.example.com Cannot start service orderer.example.com: b'OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \\"rootfs_linux.go:58: mounting \\\\\\"/home/user/fabric-samples/test-network/system-genesis-block/genesis.block\\\\\\" to rootfs \\\\\\"/var/lib/docker/overlay2/ccd7adec94c0fc9eb1b444e89b0ca1b5181135ad7f1b958277f8371d33168052/merged\\\\\\" at \\\\\\"/var/lib/docker/overlay2/ccd7adec94c0fc9eb1b444e89b0ca1b5181135ad7f1b958277f8371Recreating peer0.org1.example.com ... done
Recreating peer0.org2.example.com ... done

ERROR: for orderer.example.com Cannot start service orderer.example.com: b'OCI runtime create failed: container_linux.go:349: starting container process caused "process_linux.go:449: container init caused \\"rootfs_linux.go:58: mounting \\\\\\"/home/user/fabric-samples/test-network/system-genesis-block/genesis.block\\\\\\" to rootfs \\\\\\"/var/lib/docker/overlay2/ccd7adec94c0fc9eb1b444e89b0ca1b5181135ad7f1b958277f8371d33168052/merged\\\\\\" at \\\\\\"/var/lib/docker/overlay2/ccd7adec94c0fc9eb1b444e89b0ca1b5181135ad7f1b958277f8371d33168052/merged/var/hyperledger/orderer/orderer.genesis.block\\\\\\" caused \\\\\\"not a directory\\\\\\"\\"": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type'
ERROR: Encountered errors while bringing up the project.

Join fabric@lists.hyperledger.org to automatically receive all group messages.