当前位置:网站首页>Problems encountered in installing MySQL in docker Ubuntu container
Problems encountered in installing MySQL in docker Ubuntu container
2022-07-01 19:56:00 【A fool carrying bricks】
# After pulling the image
# Start the container Be sure to configure permissions Appoint --privileged=true,
docker run -itd --privileged=true --name=ubuntudemo ubuntu:16.04 /bin/bash
# Otherwise, the error is reported as follows
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]:/#
# install mysql There may be a mistake
# MYSQL Login time ERROR 2002 (HY000): Can‘t connect to local MySQL server through socket
# terms of settlement
mkdir -p /var/run/mysqld
chown mysql /var/run/mysqld/
service mysql restart
# details May refer to https://blog.csdn.net/huliqi789/article/details/120989539
边栏推荐
- HLS4ML进入方法
- 2022/6/8-2022/6/12
- Redis installation and startup in Windows environment (background startup)
- Optimization of video streaming with repeated requests in the case of unstable easygbs network
- 开发那些事儿:EasyCVR集群设备管理页面功能展示优化
- 关于元宇宙下一代入口——脑机接口的实现
- 墨天轮沙龙 | 清华乔嘉林:Apache IoTDB,源于清华,建设开源生态之路
- 利用win7漏洞进行系统登录密码破解
- List is divided into sets that meet and do not meet conditions (partitioningby)
- 一个程序员如何快速成长
猜你喜欢
随机推荐
Install redis under Linux and configure the environment
Sum the amount
servlet知识点
2022/5/23-2022/5/30
Interesting! Database is also serverless!
Leetcode 1380 lucky numbers in matrix [array] the leetcode path of heroding
js三元表达式复杂条件判断
强大、好用、适合程序员/软件开发者的专业编辑器/笔记软件综合评测和全面推荐
How to prevent repeated submission of new orders
[untitled]
上大学后明白了哪些坑人的事?
MySQL signale une erreur can 't create table' demo01. TB Étudiant '(errno: 150)
[research data] observation on the differences of health preservation concepts among people in 2022 - Download attached
fastDFS入门
How can a programmer grow rapidly
SwiftUI 4 新功能大全之 Toggle与 Mixed Toggle 多个绑定组件
Bind this of the current scope for callback functions in other cases such as timers and delayers
Image acquisition and playback of coaxpress high speed camera based on pxie interface
list分割成满足和不满足条件的集合(partitioningBy)
uniapp使用腾讯地图选点 没有window监听回传用户的位置信息,怎么处理









