<commit_before>---
layout: post
title: 容器启动报错error mounting 
date: 2017-05-17
categories: blog
tags: [报错,docker]
description:容器启动报错error mounting 
---

## 前言
容器启动报错error mounting xxx on var/lib/docker/devicemapper/mnt/xxxx
## 具体介绍

<pre>
删除容器里的json文件里的2行替换为空即可。
/var/lib/docker/containers/aac4c5beacb42d1b7070a0549a5b30033e96916bacd2902d5e46a845d8f5ef2b
下面有一个文件叫做：config.v2.json
cat config.v2.json |python -m json.tool
把下面这2行替换即可。
    "MountLabel": "",
    "MountPoints": {},

由于有多个容器，就写了一个批量替换脚本
脚本如下：
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__title__ = ''
__author__ = 'xie.di'
__mtime__ = '2017/5/16'
# code is far away from bugs with the god animal protecting
    I love animals. They taste delicious.<commit_msg>更新<commit_after>---
layout: post
title: docke容器启动报错处理
date: 2017-05-17
categories: blog
tags: [报错,docker]
description: docke容器启动报错处理Error starting daemon error initializing graphdriver xxx contains other graphdrivers
---

## 前言
容器启动报错error mounting xxx on var/lib/docker/devicemapper/mnt/xxxx
## 具体介绍

<pre>
删除容器里的json文件里的2行替换为空即可。
/var/lib/docker/containers/aac4c5beacb42d1b7070a0549a5b30033e96916bacd2902d5e46a845d8f5ef2b
下面有一个文件叫做：config.v2.json
cat config.v2.json |python -m json.tool
把下面这2行替换即可。
    "MountLabel": "",
    "MountPoints": {},

由于有多个容器，就写了一个批量替换脚本
脚本如下：
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__title__ = ''
__author__ = 'xie.di'
__mtime__ = '2017/5/16'
# code is far away from bugs with the god animal protecting
    I love animals. They taste delicious.
{'fraction_non_alphanumeric': 0.12169312169312169, 'fraction_numerical': 0.07539682539682539, 'mean_word_length': 4.752851711026616, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1882917', 'n_tokens_mistral': 761, 'n_tokens_neox': 748, 'n_words': 129}