久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  1. <tfoot id='62bU2'></tfoot>

    <i id='62bU2'><tr id='62bU2'><dt id='62bU2'><q id='62bU2'><span id='62bU2'><b id='62bU2'><form id='62bU2'><ins id='62bU2'></ins><ul id='62bU2'></ul><sub id='62bU2'></sub></form><legend id='62bU2'></legend><bdo id='62bU2'><pre id='62bU2'><center id='62bU2'></center></pre></bdo></b><th id='62bU2'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='62bU2'><tfoot id='62bU2'></tfoot><dl id='62bU2'><fieldset id='62bU2'></fieldset></dl></div>

      <small id='62bU2'></small><noframes id='62bU2'>

        <bdo id='62bU2'></bdo><ul id='62bU2'></ul>

      <legend id='62bU2'><style id='62bU2'><dir id='62bU2'><q id='62bU2'></q></dir></style></legend>
    1. 為什么運行docker容器后mysql數(shù)據(jù)所有權(quán)改為syste

      Why did mysql data ownership change to systemd-journal-remote after running a docker container(為什么運行docker容器后mysql數(shù)據(jù)所有權(quán)改為systemd-journal-remote)
        <i id='rGqfE'><tr id='rGqfE'><dt id='rGqfE'><q id='rGqfE'><span id='rGqfE'><b id='rGqfE'><form id='rGqfE'><ins id='rGqfE'></ins><ul id='rGqfE'></ul><sub id='rGqfE'></sub></form><legend id='rGqfE'></legend><bdo id='rGqfE'><pre id='rGqfE'><center id='rGqfE'></center></pre></bdo></b><th id='rGqfE'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='rGqfE'><tfoot id='rGqfE'></tfoot><dl id='rGqfE'><fieldset id='rGqfE'></fieldset></dl></div>
      • <legend id='rGqfE'><style id='rGqfE'><dir id='rGqfE'><q id='rGqfE'></q></dir></style></legend><tfoot id='rGqfE'></tfoot>

        <small id='rGqfE'></small><noframes id='rGqfE'>

            • <bdo id='rGqfE'></bdo><ul id='rGqfE'></ul>
                <tbody id='rGqfE'></tbody>

                本文介紹了為什么運行docker容器后mysql數(shù)據(jù)所有權(quán)改為systemd-journal-remote的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                問題描述

                我將 mysql 數(shù)據(jù)庫存儲在 /home/mysql 而不是 /var/lib/mysql.該目錄曾經(jīng)屬于 mysql.但是,當(dāng)我使用這個 yml 文件運行命令 docker-compose up 時:

                I have the mysql database stored in /home/mysql instead of /var/lib/mysql. The directory used to be owned by mysql. However, when I run the command docker-compose up with this yml file:

                version: '3'
                services:
                  mariadb:
                    image: mariadb
                    restart: always
                    volumes:
                     - /home/mysql:/var/lib/mysql
                  elasticsearch:
                    image: docker.elastic.co/elasticsearch/elasticsearch:5.6.4
                    environment:
                      - "ES_JAVA_OPTS=-Xms750m -Xmx750m"
                      - bootstrap.memory_lock=false
                  site:
                    build: .
                    volumes:
                      - "./app:/app"
                    links:
                      - mariadb:mysql
                    environment:
                      - DOCKER_IP=172.19.0.2
                    depends_on: ['elasticsearch','mariadb']
                    ports:
                      - "3000:3000"
                

                docker容器可以運行,但是/home/mysql中的整個文件夾和文件都歸systemd-journal-remote所有,導(dǎo)致node 服務(wù)器無法連接到 mariadb.我必須停止 docker 實例,恢復(fù) mysql 文件夾所有權(quán)并刪除 ib_logfile0ib_logfile1.

                The docker container is able to run, but the entire folder and files in /home/mysql are owned by systemd-journal-remote, which causes the node server fails to connect to mariadb. I have to stop the docker instance, restore the mysql folder ownership and delete ib_logfile0 and ib_logfile1.

                為什么掛載/home/mysql會導(dǎo)致如此致命的問題?

                Why does mounting /home/mysql cause such a fatal problem?

                更新:

                我的解決辦法是添加user:"mysql":

                version: '3'
                services:
                  mariadb:
                    image: mariadb
                    restart: always
                    volumes:
                     - /home/mysql:/var/lib/mysql
                    user: "mysql"
                  elasticsearch:
                    image: docker.elastic.co/elasticsearch/elasticsearch:5.6.4
                    environment:
                      - "ES_JAVA_OPTS=-Xms750m -Xmx750m"
                      - bootstrap.memory_lock=false
                  site:
                    build: .
                    volumes:
                      - "./app:/app"
                    links:
                      - mariadb:mysql
                    environment:
                      - DOCKER_IP=172.19.0.2
                    depends_on: ['elasticsearch','mariadb']
                    ports:
                      - "3000:3000"
                

                推薦答案

                您應(yīng)該使用 --user 參數(shù)啟動 Docker 的容器.如果您這樣做并設(shè)置與 MySQL 存儲的所有者相同的 uid:gid,您將不會遇到權(quán)限問題.您必須檢查如何在 Docker Compose 中準確執(zhí)行此操作,因為我向您展示了正常命令行執(zhí)行的示例

                You should start Docker's container with --user parameter. If you do this and set the same uid:gid as owner of the MySQL storage you will no have problems with permissions. You have to check how exactly to do this in Docker Compose because I show you example for normal command line execution

                這篇關(guān)于為什么運行docker容器后mysql數(shù)據(jù)所有權(quán)改為systemd-journal-remote的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請聯(lián)系我們刪除處理,感謝您的支持!

                相關(guān)文檔推薦

                How to use windowing functions efficiently to decide next N number of rows based on N number of previous values(如何有效地使用窗口函數(shù)根據(jù) N 個先前值來決定接下來的 N 個行)
                reuse the result of a select expression in the quot;GROUP BYquot; clause?(在“GROUP BY中重用選擇表達式的結(jié)果;條款?)
                Does ignore option of Pyspark DataFrameWriter jdbc function ignore entire transaction or just offending rows?(Pyspark DataFrameWriter jdbc 函數(shù)的 ignore 選項是忽略整個事務(wù)還是只是有問題的行?) - IT屋-程序員軟件開發(fā)技
                Error while using INSERT INTO table ON DUPLICATE KEY, using a for loop array(使用 INSERT INTO table ON DUPLICATE KEY 時出錯,使用 for 循環(huán)數(shù)組)
                pyspark mysql jdbc load An error occurred while calling o23.load No suitable driver(pyspark mysql jdbc load 調(diào)用 o23.load 時發(fā)生錯誤 沒有合適的驅(qū)動程序)
                How to integrate Apache Spark with MySQL for reading database tables as a spark dataframe?(如何將 Apache Spark 與 MySQL 集成以將數(shù)據(jù)庫表作為 Spark 數(shù)據(jù)幀讀取?)

                  <small id='1CM5q'></small><noframes id='1CM5q'>

                    <bdo id='1CM5q'></bdo><ul id='1CM5q'></ul>
                      <tbody id='1CM5q'></tbody>
                  • <legend id='1CM5q'><style id='1CM5q'><dir id='1CM5q'><q id='1CM5q'></q></dir></style></legend>

                        <tfoot id='1CM5q'></tfoot>
                        <i id='1CM5q'><tr id='1CM5q'><dt id='1CM5q'><q id='1CM5q'><span id='1CM5q'><b id='1CM5q'><form id='1CM5q'><ins id='1CM5q'></ins><ul id='1CM5q'></ul><sub id='1CM5q'></sub></form><legend id='1CM5q'></legend><bdo id='1CM5q'><pre id='1CM5q'><center id='1CM5q'></center></pre></bdo></b><th id='1CM5q'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='1CM5q'><tfoot id='1CM5q'></tfoot><dl id='1CM5q'><fieldset id='1CM5q'></fieldset></dl></div>

                        • 主站蜘蛛池模板: 91大神在线看 | 欧美日韩综合一区 | 91av免费观看 | 日本中文字幕在线视频 | 亚洲bt 欧美bt 日本bt | 亚洲视频一区在线观看 | 天天综合久久 | 国产网站在线播放 | 国产第1页| 激情欧美一区二区三区中文字幕 | 亚洲一区二区电影在线观看 | 在线中文字幕国产 | 999久久久久久久久 国产欧美在线观看 | 婷婷五月色综合香五月 | 亚洲视频一区在线播放 | 2018国产精品| 人人做人人澡人人爽欧美 | 99精品久久久久久久 | 欧美黄色一级毛片 | 欧美精品一区二区在线观看 | 日韩精品1区2区3区 爱爱综合网 | 91一区| 久久精品青青大伊人av | 亚洲444eee在线观看 | 午夜av一区二区 | 国产一级特黄真人毛片 | 天天玩天天操天天干 | 国产视频在线观看一区二区三区 | 天堂亚洲 | 2018国产精品 | 人人鲁人人莫人人爱精品 | 久久精品免费一区二区 | 日韩成人在线免费视频 | 欧美一级一| 亚洲人成人一区二区在线观看 | 欧美一区二区三区免费在线观看 | 综合激情久久 | 免费在线精品视频 | 欧美最猛黑人xxxⅹ 粉嫩一区二区三区四区公司1 | 日韩中字幕 | 中文字幕高清视频 |