当前位置:网站首页>docker ubuntu容器中安装mysql遇到的问题
docker ubuntu容器中安装mysql遇到的问题
2022-07-01 18:48:00 【傻瓜搬砖人】
# 拉取镜像后
# 启动容器 一定要配置权限 指定--privileged=true,
docker run -itd --privileged=true --name=ubuntudemo ubuntu:16.04 /bin/bash
# 否则报错如下
Setting up mysql-server-5.7 (5.7.36-0ubuntu0.18.04.1) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of stop.
update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
Renaming removed key_buffer and myisam-recover options (if present)
Cannot stat file /proc/244/fd/0: Permission denied
Cannot stat file /proc/244/fd/1: Permission denied
Cannot stat file /proc/244/fd/2: Permission denied
Cannot stat file /proc/244/fd/3: Permission denied
Cannot stat file /proc/244/fd/4: Permission denied
Cannot stat file /proc/244/fd/5: Permission denied
Cannot stat file /proc/244/fd/6: Permission denied
Cannot stat file /proc/244/fd/7: Permission denied
Cannot stat file /proc/244/fd/8: Permission denied
Cannot stat file /proc/244/fd/9: Permission denied
Cannot stat file /proc/244/fd/10: Permission denied
Cannot stat file /proc/244/fd/11: Permission denied
Cannot stat file /proc/244/fd/12: Permission denied
Cannot stat file /proc/244/fd/13: Permission denied
Cannot stat file /proc/244/fd/14: Permission denied
Cannot stat file /proc/244/fd/15: Permission denied
Cannot stat file /proc/244/fd/16: Permission denied
Cannot stat file /proc/244/fd/17: Permission denied
Cannot stat file /proc/244/fd/18: Permission denied
Cannot stat file /proc/244/fd/19: Permission denied
Cannot stat file /proc/244/fd/20: Permission denied
Cannot stat file /proc/244/fd/21: Permission denied
Cannot stat file /proc/244/fd/22: Permission denied
Cannot stat file /proc/244/fd/23: Permission denied
Cannot stat file /proc/244/fd/24: Permission denied
Cannot stat file /proc/244/fd/25: Permission denied
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Setting up libfcgi-perl (0.78-2build1) ...
Setting up libhtml-tagset-perl (3.20-3) ...
Setting up mysql-server (5.7.36-0ubuntu0.18.04.1) ...
Setting up libencode-locale-perl (1.05-1) ...
Setting up libtimedate-perl (2.3000-2) ...
Setting up libio-html-perl (1.001-1) ...
Setting up libhtml-parser-perl (3.72-3build1) ...
Setting up libcgi-pm-perl (4.38-1) ...
Setting up libhttp-date-perl (6.02-1) ...
Setting up libhtml-template-perl (2.97-1) ...
Setting up libcgi-fast-perl (1:2.13-1) ...
Setting up libhttp-message-perl (6.14-1) ...
Processing triggers for libc-bin (2.27-3ubuntu1.4) ...
[email protected]:/#
# 安装mysql 可能会报错
# MYSQL登录时ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket
# 解决办法
mkdir -p /var/run/mysqld
chown mysql /var/run/mysqld/
service mysql restart
# 详情 可参考 https://blog.csdn.net/huliqi789/article/details/120989539
边栏推荐
- Redis installation and startup in Windows environment (background startup)
- 新窗口打开页面-window.open
- 1592 例题1 国王(Sgu223 LOJ10170 LUOGU1896 提高+/省选-) 暴力思考 状压DP 01背包
- PowerDesigner design name and comment replacement
- 1592 example 1 King (sgu223 loj10170 luogu1896 increase + / provincial election -) violent thinking pressure DP 01 Backpack
- JVM内存模型
- How to add transactions in JDBC
- servlet知识点
- Anaconda安装虚拟环境到指定路径
- GC垃圾回收
猜你喜欢

Oracle physical architecture

产品模块化设计的前世今生

Related concepts of cookies and sessions

Solve the problem of slow or failed vscode download

Win11暂停更新点不了怎么办?Win11暂停更新是灰色的如何解决?

Win11快捷键切换输入法无反应怎么办?快捷键切换输入法没有反应

EasyCVR通过国标GB28181协议接入设备,出现设备自动拉流是什么原因?

Example explanation: move graph explorer to jupyterlab

JS proxy

对象的创建
随机推荐
JS ternary expression complex condition judgment
Class loading mechanism
使用Zadig从0到1搭建持续交付平台
js三元表达式复杂条件判断
HLS4ML报错The board_part definition was not found for tul.com.tw:pynq-z2:part0:1.0.
对象的创建
JDBC中如何添加事务
Uni app product classification
Anaconda安装虚拟环境到指定路径
[research materials] Huawei Technology ICT 2021: at the beginning of the "Yuan" year, the industry is "new" -- download attached
Shell advanced
qobject_ Cast usage
一个悄然崛起的国产软件,低调又强大!
Analysis of GetMessage underlying mechanism
How to configure webrtc video streaming format for easygbs, a new version of national standard gb28181 video platform?
Win11快捷键切换输入法无反应怎么办?快捷键切换输入法没有反应
类加载机制
SQL 入门计划-1-选择
torch. nn. functional. Interpolate function
Win11如何取消任务栏隐藏?Win11取消任务栏隐藏的方法