当前位置:网站首页>docker: Error response from daemon: Conflict. The container name “/mysql“ is already in use by conta
docker: Error response from daemon: Conflict. The container name “/mysql“ is already in use by conta
2022-06-22 17:55:00 【A bowl of humble powder】
One 、 Problem description
docker Install well MySQL after , An error occurs when an instance is created and started :
docker: Error response from daemon: Conflict. The container name "/mysql" is already in use by container "5e1f4861f523bdff7cfcfb538d405ac506558b771f880ea4276a3104dfd49b5b". You have to remove (or rename) that container to be able to reuse that name.

Two 、 solve
(1) Remove the original container ID( It's the long string of numbers )
docker rm + container ID
(2) Create new container again
docker run -p 3306:3306 --name mysql \
-v /mydata/mysql/log:/var/log/mysql \
-v /mydata/mysql/data:/var/lib/mysql \
-v /mydata/mysql/conf:/etc/mysql \
-e MYSQL_ROOT_PASSWORD=root \
-d mysql:5.7(3) Test for success


边栏推荐
- A classmate asked what framework PHP should learn?
- STM32 series (HAL Library) - f103c8t6 hardware SPI illuminates OLED screen with word library
- Fluentd is easy to get started. Combined with the rainbow plug-in market, log collection is faster
- clickhouse 21.x 集群四分片一副本部署
- 面试突击58:truncate、delete和drop的6大区别!
- [mysql] data synchronization prompt: specified key was too long; max key length is 767 bytes
- [fpga+pwm] design and implementation of phase shift trigger circuit for three-phase PWM rectifier based on FPGA
- Description of new features and changes in ABP Framework version 5.3.0
- The principle of locality in big talk
- JSP learning (I) -- overview of JSP
猜你喜欢

##Kibana+ELK集群日志处理

以小见大:一个领域建模的简单示例,理解“领域驱动”。

How to solve the problem of database?

WPF效果第一百九十篇之再耍ListBox
![[fpga+pwm] design and implementation of phase shift trigger circuit for three-phase PWM rectifier based on FPGA](/img/ad/c039932abe409d696380e8427173c0.png)
[fpga+pwm] design and implementation of phase shift trigger circuit for three-phase PWM rectifier based on FPGA

0基础如何入门软件测试,能转行成功吗?

Seeing the big from the small: a simple example of domain modeling, understanding "domain driven".

试用了多款报表工具,终于找到了基于.Net 6开发的一个了

云端极简部署Svelte3聊天室

Tasks and responsibilities of the test team and basic concepts of testing
随机推荐
C#-Linq源码解析之DefaultIfEmpty
基于.NetCore开发博客项目 StarBlog - (12) Razor页面动态编译
What is a flush? Is online account opening safe?
clickhouse 21.x 集群四分片一副本部署
QT notes qmap user defined key
Blazor University (30) form - derived from inputbase
Docker 之MySQL 重启,提示Error response from daemon: driver failed programming external connectivity on **
Xshell 7 (SSH Remote Terminal tool) v7.0.0109 official Chinese Version (with file + installation tutorial)
Description of new features and changes in ABP Framework version 5.3.0
. Net release and support plan introduction
Donghua University - Research on interpretable recommendation micro behavior with enhanced knowledge perception reasoning
This article takes you to master the use of tcpdump command
云端极简部署Svelte3聊天室
When online and offline integration accelerates and information docking channels are diversified, the traditional center will not be necessary
You call this crap high availability?
华为云“数智”化运维
0基础如何入门软件测试,能转行成功吗?
Configuration of development environment for JSP learning
如何理解volatile
UI自动化定位利器-xpath实战