docker容器运行mysql持久化_OS x下使用Docker 持久化Mysql 数据出现问题
初学Docker ,请见谅。
系统: OS X 10.11.1 (15B42)
运行docker工具:Docker Quickstart Terminal virtualbox 5.0.8
docker 版本:Docker version 1.8.2, build 0a8c2e3镜像 docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
ubuntu14 v1 5044888e9250 6 days ago 254.8 MB
mysql 5.6 80013edd4cba 2 weeks ago 324.2 MB
dev/mysql latest 80013edd4cba 2 weeks ago 324.2 MB
基于dev/mysql镜像启动容器命令
docker run -p 3306:3306 -v ~/Develop/docker/php/mysql/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 -it dev/mysql
错误
Initializing database
2015-11-10 03:19:14 0 /usr/sbin/mysqld (mysqld 5.6.27) starting as process 17 ...
2015-11-10 03:19:14 17 InnoDB: Using atomics to ref count buffer pool pages
2015-11-10 03:19:14 17 InnoDB: The InnoDB memory heap is disabled
2015-11-10 03:19:14 17 InnoDB: Mutexes and rw_locks use GCC atomic builtins
2015-11-10 03:19:14 17 InnoDB: Memory barrier is not used
2015-11-10 03:19:14 17 InnoDB: Compressed tables use zlib 1.2.8
2015-11-10 03:19:14 17 InnoDB: Using Linux native AIO
2015-11-10 03:19:14 17 InnoDB: Using CPU crc32 instructions
2015-11-10 03:19:14 17 InnoDB: Initializing buffer pool, size = 128.0M
2015-11-10 03:19:14 17 InnoDB: Completed initialization of buffer pool
2015-11-10 03:19:14 17 InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
2015-11-10 03:19:14 17 InnoDB: Setting file ./ibdata1 size to 12 MB
2015-11-10 03:19:14 17 InnoDB: Database physically writes the file full: wait...
2015-11-10 03:19:14 17 InnoDB: Setting log file ./ib_logfile101 size to 48 MB
2015-11-10 03:19:14 17 InnoDB: Setting log file ./ib_logfile1 size to 48 MB
2015-11-10 03:19:15 7fa012ebc740 InnoDB: Operating system error number 13 in a file operation.
InnoDB: The error means mysqld does not have the access rights to
InnoDB: the directory.
2015-11-10 03:19:15 7fa012ebc740 InnoDB: Assertion failure in thread 140325488936768 in file fil0fil.cc line 875
InnoDB: Failing assertion: ret
InnoDB: We intentionally generate a memory trap.
InnoDB: Submit a detailed bug report to http://bugs.mysql.com.
InnoDB: If you get repeated assertion failures or crashes, even
InnoDB: immediately after the mysqld startup, there may be
InnoDB: corruption in the InnoDB tablespace. Please refer to
InnoDB: http://dev.mysql.com/doc/refman/5.6/en/forcing-innodb-recovery.html
InnoDB: about forcing recovery.
03:19:15 UTC - mysqld got signal 6 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.
key_buffer_size=8388608
read_buffer_size=131072
max_used_connections=0
max_threads=151
thread_count=0
connection_count=0
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 68108 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
Thread pointer: 0x0
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 0 thread_stack 0x40000
/usr/sbin/mysqld(my_print_stacktrace+0x2c)
/usr/sbin/mysqld(handle_fatal_signal+0x481)
/lib/x86_64-linux-gnu/libpthread.so.0(+0xf8d0)
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x37)
/lib/x86_64-linux-gnu/libc.so.6(abort+0x148)
/usr/sbin/mysqld
/usr/sbin/mysqld
/usr/sbin/mysqld
/usr/sbin/mysqld
/usr/sbin/mysqld
/usr/sbin/mysqld(_Z24ha_initialize_handlertonP13st_plugin_int+0x48)
/usr/sbin/mysqld
/usr/sbin/mysqld(_Z11plugin_initPiPPci+0x8f0)
/usr/sbin/mysqld(_Z11mysqld_mainiPPc+0x865)
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)
/usr/sbin/mysqld
The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.
按照官网说明改为完整路径名
之后不会直接抛出错误 但是执行docker ps后没有出现容器的进程
docker容器运行mysql持久化_OS x下使用Docker 持久化Mysql 数据出现问题相关推荐
- docker 容器运行 golang程序_「Docker」 - 运行 amp; 管理容器
容器是基于容器技术所建立和运行的轻量级应用运行环境,它是Docker封装和管理应用程序或微服务的「集装箱」,在Docker中,容器是最核心的部分. 一.容器的创建和启动 Docker容器的生命周期里分 ...
- Docker容器运行GUI程序的方法(直接进入Docker容器运行或通过SSH连接Docker容器运行)
以下两种方法都需要先在主机执行 xhost + 命令,若无该命令,先apt安装 x11-xserver-utils 后再执行,否则会报 No protocol specified 这个错 sudo a ...
- Docker4.Docker容器运行、查看、启停、删除
Docker4.Docker容器运行.查看.启停.删除 docker run:运行容器 常用选项参数 -p的四种方式 docker run -it:交互式进入容器 docker run -d:后台启动 ...
- Pycharm代码docker容器运行调试 | 机器学习系列
目录 介绍 版本 部署 安装驱动 安装docker 创建基础容器 安装Anaconda 关于Anaconda的使用 Docker容器SSH服务启动 Pycharm连接Docker容器 验证 运行验证 ...
- 使用docker容器运行java程序
使用docker容器运行java程序 java 18 一.文件准备 mkdir 11 cd 11 创建并进入目录 docker pull ubuntu:22.04 wget https://downl ...
- docker容器运行mysql持久化_docker容器实现数据持久化的两种方式及其区别
前言 这篇博文是我对docker实现数据持久化几种方式的特征进行一个总结. 在docker中,它的存储文件系统是在dockerhost上原有的xfs或ext4架设了一层文件系统:overlay2(将此 ...
- 微服务项目部署在docker容器运行
昨天的一篇微服务项目中涉及到docker部署,今天写一篇关于微服务项目部署在docker容器中运行,使用github上另外一个比较经典的微服务项目piggyMetric,项目的github地址:htt ...
- 在Windows系统浏览器中访问虚拟机CentOS里面Docker容器运行nginx服务器
1.在CentOS虚拟机中启动一个Docker容器 # 创建并运行一个名字为runoob-nginx-test 的nginx 容器,映射端口号8083->80 [root@localhost ~ ...
- linux docker 容器运行后不退出的方法
现象 启动docker容器 docker run –name [CONTAINER_NAME] [CONTAINER_ID] 查看容器运行状态 docker ps -a 发现刚刚启动的mydo ...
最新文章
- 单细胞转录组专题研讨会第二期
- R语言使用survminer包生存分析及可视化(ggsurvplot)实战详解:从数据集导入、生存对象生成、ggsurvplot可视化参数配置、设置、可视化对比
- Android P 凹口屏支持,打造全面屏体验
- 算法提高课-图论-单源最短路的建图方式-AcWing 1127. 香甜的黄油:spfa最短路
- 【数据结构与算法】之深入解析“地下城游戏”的求解思路与算法示例
- 2016蘑菇街编程题:搬圆桌
- mysql 搭建日志服务器_一、架构01-搭建日志服务器Rsyslog
- 一图看懂云栖大会「云原生」发布
- 如果需要一个图形学算法
- vb连接mysql教程视频_VB 连接mysql数据库
- ajaxpro 下载 dll 资源集锦及示例大结局
- 关于Java八种原始数据类型
- linux--服务器降频
- [附源码]java毕业设计创意众筹网站
- MACOS 苹果系统 微信多开
- [BluehensCTF 2022] pwn11 crypto3
- 性能工具之Taurus使用(入门篇)
- linux怎么设置ie内核,怎么把易语言内核IE版本改成本地的内核版本!!
- python使用opencv对图像添加(高斯/椒盐/泊松/斑点)噪声
- 【2020年牛客暑假第九场】E题 Groundhog Chasing Death
热门文章
- intellij 快捷键_IntelliJ中的键盘快捷键
- 使用OpenSSL加密,使用Java解密,使​​用OpenSSL RSA公钥
- H2数据库的Spring Boot
- Java:ChronicleMap第3部分,快速微服务
- AWS re:Invent 2018的5大公告
- Javascript中的AES加密和Java中的解密
- JWT令牌的秘密轮换
- 五分钟的JShell
- weblogic ejb_使用Oracle WebLogic对应用程序外部的EJB的引用
- java核心面试_不正确的核心Java面试答案