Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
0
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

@tchofu

ERROR: Docker has been previously configured for use with devicemapper graph driverを解消しました

たまたまCentOS起動時に赤い字で「FAILURE」を見つけました。直接何か問題を感じたわけではなかったのですが、気持ち悪いので、このERRORは解消しておくことにしました。

現象

/var/log/messagesに、docker起動時にエラーが記録されます。ただ、このエラーがあるからと言って、dockerをちょこっと使う範囲で何か問題を感じる、見ることはありませんでした。

/var/log/messagesの抜粋
Apr  1 09:36:03 centos7 container-storage-setup: ERROR: Docker has been previously configured for use with devicemapper graph driver. Not creating a new thin pool as existing docker metadata will fail to work with it. Manual cleanup is required before this will succeed.
Apr  1 09:36:03 centos7 container-storage-setup: INFO: Docker state can be reset by stopping docker and by removing /var/lib/docker directory. This will destroy existing docker images and containers and all the docker metadata.
Apr  1 09:36:03 centos7 systemd: docker-storage-setup.service: main process exited, code=exited, status=1/FAILURE
Apr  1 09:36:03 centos7 systemd: Failed to start Docker Storage Setup.
Apr  1 09:36:03 centos7 systemd: Unit docker-storage-setup.service entered failed state.
Apr  1 09:36:03 centos7 systemd: docker-storage-setup.service failed.

ちなみに、この時のイメージやコンテナは以下のような状況です。

[devel@centos7 ~]$ docker images
REPOSITORY                          TAG                 IMAGE ID            CREATED             SIZE
tacchang/centos7_apache24_python3   latest              ef312ad111cd        7 months ago        658 MB
[devel@centos7 ~]$ docker ps -a
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                      PORTS               NAMES
590beb9ad1e4        ef312ad111cd        "container-entrypo..."   7 months ago        Exited (137) 4 months ago                       webapp1

解消

末尾に挙げたsuguru03さんのブログを拝見して、そのまま真似てみました。これで、ERRORはなくなりました。

[devel@centos7 ~]$ docker system prune
WARNING! This will remove:
        - all stopped containers
        - all volumes not used by at least one container
        - all networks not used by at least one container
        - all dangling images
Are you sure you want to continue? [y/N] y
Deleted Containers:
590beb9ad1e4c76955bf72bdac8a3726e77b0d2d1610f33ff3f4d70b2aa9660a

Total reclaimed space: 155 kB

参考

環境

  • Windows 10 version 1709(16299.309)
  • VirtualBox 5.2.6 r120293
  • CentOS 7.4.1708
  • docker 1.13.1
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
0
Help us understand the problem. What are the problem?