Re: Issues with docker in Fedora 30? #docker
Tong Li
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 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. Tried. Doesn't work: (base) [user@f30 mywork]$ ./minifab up Unable to find image 'hfrd/minifab:latest' locally latest: Pulling from hfrd/minifab df20fa9351a1: Already exists 16d327ff9a88: Pull complete 4b00023a922a: Pull complete 5d2a491bd934: Pull complete 603d27addd1e: Pull complete Digest: sha256:0167daac05b1a55d187a287d88a3b053609921e15a4c8bdd8e0e4efc0b8e165e Status: Downloaded newer image for hfrd/minifab:latest cp: can't create 'vars/envsettings': Permission denied scripts/mainfuncs.sh: line 84: ./vars/envsettings: No such file or directory scripts/mainfuncs.sh: line 91: ./vars/envsettings: Permission denied scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied Minifab Execution Context: FABRIC_RELEASE= CHANNEL_NAME= PEER_DATABASE_TYPE= CHAINCODE_LANGUAGE= CHAINCODE_NAME= CHAINCODE_VERSION= CHAINCODE_INIT_REQUIRED= CHAINCODE_PARAMETERS= CHAINCODE_PRIVATE= CHAINCODE_POLICY= TRANSIENT_DATA= BLOCK_NUMBER= EXPOSE_ENDPOINTS= CURRENT_ORG= HOST_ADDRESSES=192.168.121.76,172.20.8.243 Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.39/containers/minifab/json: dial unix /var/run/docker.sock: connect: permission denied WORKING_DIRECTORY: cp: can't create directory '/home/vars/chaincode': Permission denied [WARNING]: log file at /home/vars/ansible.log is not writeable and we cannot create it, aborting .. # Remove approve and commit from the operation list if release is less than 2.0 The conditional check 'IMAGETAG is version('2.0', '<')' failed. The error was: Version comparison: 'LooseVersion' object has no attribute 'version' The error appears to be in '/home/fabops.yaml': line 21, column 7, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: Remove approve and commit from the operation list if release is less than 2.0 ^ here # STATS ******************************************************* minifab: ok=2 failed=1 real 0m1.435s user 0m1.295s sys 0m0.152s (base) [user@f30 mywork]$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES (base) [user@f30 mywork]$ sudo ./minifab up [sudo] password for user: cp: can't create 'vars/envsettings': Permission denied scripts/mainfuncs.sh: line 84: ./vars/envsettings: No such file or directory scripts/mainfuncs.sh: line 91: ./vars/envsettings: Permission denied scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied scripts/mainfuncs.sh: line 93: ./vars/envsettings: Permission denied Minifab Execution Context: FABRIC_RELEASE= CHANNEL_NAME= PEER_DATABASE_TYPE= CHAINCODE_LANGUAGE= CHAINCODE_NAME= CHAINCODE_VERSION= CHAINCODE_INIT_REQUIRED= CHAINCODE_PARAMETERS= CHAINCODE_PRIVATE= CHAINCODE_POLICY= TRANSIENT_DATA= BLOCK_NUMBER= EXPOSE_ENDPOINTS= CURRENT_ORG= HOST_ADDRESSES=192.168.121.76,172.20.8.243 Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.39/containers/minifab/json: dial unix /var/run/docker.sock: connect: permission denied WORKING_DIRECTORY: cp: can't create directory '/home/vars/chaincode': Permission denied [WARNING]: log file at /home/vars/ansible.log is not writeable and we cannot create it, aborting .. # Remove approve and commit from the operation list if release is less than 2.0 The conditional check 'IMAGETAG is version('2.0', '<')' failed. The error was: Version comparison: 'LooseVersion' object has no attribute 'version' The error appears to be in '/home/fabops.yaml': line 21, column 7, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: Remove approve and commit from the operation list if release is less than 2.0 ^ here # STATS ******************************************************* minifab: ok=2 failed=1 real 0m1.391s user 0m1.249s sys 0m0.149s (base) [user@f30 mywork]$ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES |
|