Personal_Note
  • Home
  • About
Sign in Subscribe

Docker

A collection of 2 posts
Docker

安装docker

1、安装前先关闭防火墙和selinux 关闭防火墙: [root@localhost ~]# systemctl stop firewalld [root@localhost ~]# systemctl disable firewalld 关闭selinux: [root@localhost ~]# vi /etc/selinux/config 把如下的SELINUX修改成disabled # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints
13 Nov 2025 4 min read
Docker

docker中配置mysql链接navicat

先清理掉当前无法启动的 mysql_word 容器: ```docker rm -f mysql_word``` -f 强制删除正在运行(或假死)的容器,确保清理干净。 删除残留的旧数据卷 docker volume rm mysql_data 建立mysql_data卷 docker volume create mysql_data 建立并启动mysql docker run -d --name mysql_word -p 3306:3306 -v mysql_data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 docker.1ms.
13 Nov 2025 1 min read
Page 1 of 1
Personal_Note © 2025
  • Sign up
Powered by Ghost