start the container error An error occurred trying to connect: Get http:///var/run/docker.sock/v1.21/containers/json?all
Internet search data three steps to solve:
- Stop docker daemon li>
- sudo rm/var/lib/docker/network/files/local – kv. Db li>
- Start docker daemon li> ol> but failed to solve my problem.
shows UUID when viewing dockre status:
qian:/var/lib/docker/devicemapper/devicemapper # systemctl status docker -l docker.service - Docker Application Container Engine Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled) Active: failed (Result: exit-code) since Fri 2017-03-31 10:15:21 EDT; 45s ago Docs: http://docs.docker.com Process: 34204 ExecStart=/usr/bin/docker daemon -H fd:// $DOCKER_OPTS (code=exited, status=1/FAILURE) Main PID: 34204 (code=exited, status=1/FAILURE) Mar 31 10:15:21 qian docker[34204]: time="2017-03-31T10:15:21.084102345-04:00" level=warning msg="devmapper: Usage of loopback devices is strongly discouraged for production use. Please use `--storage-opt dm.thinpooldev` or use `man docker` to refer to dm.thinpooldev section." Mar 31 10:15:21 qian docker[34204]: time="2017-03-31T10:15:21.098182020-04:00" level=error msg="[graphdriver] prior storage driver \"devicemapper\" failed: devmapper: Base Device UUID and Filesystem verification failed.devmapper: Current Base Device UUID: does not match with stored UUID:ecfee58a-4aef-41e5-888b-e1588b90f325. Possibly using a different thin pool than last invocation" Mar 31 10:15:21 qian docker[34204]: time="2017-03-31T10:15:21.098304502-04:00" level=fatal msg="Error starting daemon: error initializing graphdriver: devmapper: Base Device UUID and Filesystem verification failed.devmapper: Current Base Device UUID: does not match with stored UUID:ecfee58a-4aef-41e5-888b-e1588b90f325. Possibly using a different thin pool than last invocation"
looking at the disk UUID found that there are fewer disks dm-0 or * than the normal container
qian:/var/lib/docker/devicemapper/devicemapper # ls -al /dev/disk/by-uuid/ total 0 drwxr-xr-x 2 root root 100 Mar 30 19:13 . drwxr-xr-x 5 root root 100 Mar 14 09:56 .. lrwxrwxrwx 1 root root 10 Mar 14 09:56 ddaefbae-cc5e-4579-b2dc-24340323ccde -> ../../sda2 lrwxrwxrwx 1 root root 10 Mar 14 09:56 eabdb089-f65f-4150-ac14-7e2deaca1d85 -> ../../sda1 lrwxrwxrwx 1 root root 10 Mar 14 09:56 ecfee58a-4aef-41e5-888b-e1588b90f325 -> ../../sda3
check the container device PID, found and normal is not the same, normal is UUID, my display as PTUUID
qian:/var/lib/docker/devicemapper/devicemapper # blkid /dev/mapper/docker-8\:3-126130724-pool /dev/mapper/docker-8:3-126130724-pool: PTUUID="d541fadc" PTTYPE="dos"
at this point there is no way to continue to search for the cause, and I can confirm that the disk UUID associated with the container was indeed not found on my node.
view the docker uuid associated in/var/lib/docker/devicemapper/metadata/deviceset – metadata file.
my final solution is to delete the docker related folder /etc/docker /var/lib/docker reinstall docker…
Read More:
- Docker command error during connect: get http://2F2F.2Fpipe2Fdocker_ engine/v1.36/containers/json: open//.
- [Sovled] Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
- docker: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled
- Solve Linux docker pull error get https://registry-1.docker.io/v2/ : Net / http: TLS handshake timeout
- Docker compose reports an error and multiple containers conflict
- How to Fix ERROR: Couldn’t connect to Docker daemon at http+docker://localhost – is it running?
- The docker copies the win10 host file into the docker container. An error is reported: copying between containers is not supported
- An Ajax HTTP error occurred in drupal7 installation occurred.HTTP Result Code
- Error response from daemon: Get https://20.0.0.100/v2/: dial tcp 20.0.0.100:443: connect: connection
- Docker was unable to connect to the docker daemons
- Solve win10 docker:error during connect: Get https://192.168.99.100 : 2376 and error checking TLS connection
- It can’t connect to local MySQL server through socket ‘/ tmp/ mysql.sock ‘(2) “;
- Docker CentOS Failed to get D-Bus connection: Operation not permitted
- An error occurred while installing json (1.8.1)
- linux docker Error Failed to get D-Bus connection: Operation not permitted
- docker service Failed to get D-Bus connection: Operation not permitted
- [Solved] failed to req API:/nacos/v1/ns/instance after all servers
- Solve the problem of copy failed: stat / var / lib / docker / TMP / docker builder 455335933 / opt: no such file or directory
- systemctl start docker Job for docker.service failed because the control process exited with error
- Error occurred when sourcetree switches from all branches to current branch