<commit_before>---

layout: post
title: docker 环境常见问题
category: 技术
tags: Docker
keywords: Docker

---

## 问题列表

1. 容器有时会莫名其妙重启
2. Container stuck, can't be stopped or killed, can't exec into it either
3. docker 停住
4. docker pull 镜像失败
5. 项目启动是访问mysql 失败

## 1 容器有时会莫名其妙重启

环境：marathon + mesos + docker 集群
<commit_msg>[fix]add post<commit_after>---

layout: post
title: docker 环境（主要运行java项目）常见问题
category: 技术
tags: Docker
keywords: Docker

---

## 问题列表

1. 容器有时会莫名其妙重启
2. Container stuck, can't be stopped or killed, can't exec into it either
3. docker 停住
4. docker pull 镜像失败
5. 项目启动时访问mysql 失败

## 1 容器有时会莫名其妙重启

环境：marathon + mesos + docker 集群

{'fraction_non_alphanumeric': 0.09937888198757763, 'fraction_numerical': 0.018633540372670808, 'mean_word_length': 3.8134328358208953, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6954796', 'n_tokens_mistral': 348, 'n_tokens_neox': 364, 'n_words': 89}