1. Installation Search the mariadb version to be installed through dockerhub. Execute docker pull to pull the image to the local computer. Start mariadb
Is the installation successful? Check if the container is running docker ps -a Modify the container to start automatically docker container update --restart=always container id 2. Modify the table name to be case insensitive Check the container ID through docker ps, and then enter the container with the following command docker exec -it 5344dfbfc7bc /bin/bash Enter the /etc/mysql directory and modify the my.cfg file #Install vimapt-get updateapt-get install vim#Modify my.cfg, add lower_case_table_name=1vim my.cnf Exit the container and restart the container via docker stop/rm/run Attachment: Modify the default directory of docker https://ld246.com/article/1566017283738 For new versions of Docker (greater than v17.05.0), modify the installation (storage) directory: modify (create) /etc/docker/daemon.json and specify the value of the data-root parameter Proceed as follows: vim /etc/docker/daemon.json join in { "data-root": "/store/software/docker", "storage-driver": "overlay2" # This is the default setting for Docker, you don't need to add it here} Then restart the docker service systemctl restart docker After completing the migration using any of the above methods and confirming that Docker can work properly, delete the backed-up original directory data: rm -rf /var/lib/docker.bak The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: An article to help you learn more about JavaScript arrays
>>: How to solve the DOS window garbled problem in MySQL
Let’s start the discussion from a common question...
Table of contents 1. Install html2Canvas 2. Intro...
Fault site: Log in to the MySQL server and get th...
Table of contents Preface On-site investigation C...
Table of contents 1. Registering custom instructi...
Table of contents 1. When inserting or modifying ...
CJK is the abbreviation of CJK Unified Ideographs...
What is a file system We know that storage engine...
Preface Whether it is a stand-alone lock or a dis...
Basics A transaction is an atomic operation on a ...
1. Navigation: Unordered List vs. Other Label Ele...
Lambda Expressions Lambda expressions, also known...
<br />Before browsers can handle the next ge...
Because what I wrote before was not detailed enou...
First, pull the image (or just create a container...