当前位置:网站首页>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


边栏推荐
- The win10 desktop icon disappears and the toolbar turns black
- SaaS化应用开发指南
- Tried several report tools, and finally found a report based on Net 6
- MTLs guidelines for kubernetes engineers
- A new mode of enterprise software development: low code
- Principle of synchronized implementation
- STM32系列(HAL库)——F103C8T6硬件SPI点亮带字库OLED屏
- math_角函数&反三角函数
- The MySQL of docker restarts, prompting error response from daemon: driver failed programming external connectivity on**
- Source code of live video system, hiding and Title Modification of the top title bar
猜你喜欢

Quickly master asp Net authentication framework identity - login and logout

QT notes qmap user defined key

云端极简部署Svelte3聊天室

Cloud minimalist deployment svelte3 chat room

Xshell 7 (SSH Remote Terminal tool) v7.0.0109 official Chinese Version (with file + installation tutorial)

Quartus Prime 18.0软件安装包和安装教程

Tasks and responsibilities of the test team and basic concepts of testing

AD20/Altium designer——过孔盖油

STM32 series (HAL Library) - f103c8t6 hardware SPI illuminates OLED screen with word library

imx6ull的GPIO操作方法
随机推荐
网传学习通1.7亿密码泄露!有什么补救措施?
C#-Linq源码解析之DefaultIfEmpty
一文带你掌握Tcpdump命令的使用
Hello Playwright:(7)模拟键盘和鼠标
Is the CSC securities account given by qiniu school true? Is it safe to open an account
网络智能运维助力运维效率提升
Recommend 7 super easy-to-use terminal tools - ssh+ftp
Source code of live video system, hiding and Title Modification of the top title bar
Cross platform brake browser
同花顺软件是什么?网上开户安全么?
网页制作存在的一些难点
Docker之MySQL主从连接提示:Communications link failure
MYSQL_ ERRNO : 1205 MESSAGE :Lock wait timeout exceeded; try restarting transacti
Development mode of JSP learning
[recruitment] [Beijing Zhongguancun / remote] [tensorbase][open source data warehouse] and other people do one thing
Principle of synchronized implementation
【人脸识别】基于GoogleNet深度学习网络的人脸识别matlab仿真
math_角函数&反三角函数
How to understand volatile
DAP事实表加工汇总功能应用说明