• 请不要在回答技术问题时复制粘贴 AI 生成的内容
daijinming
V2EX  ›  程序员

翻译 Container Shell Access

  •  
  •   daijinming · Feb 21, 2019 · 2197 views
    This topic created in 2665 days ago, the information mentioned may be changed or developed.

    标题:Container Shell Access 内容解释:To have shell access to your MySQL Server container, use the docker exec -it command to start a bash shell inside the container:

    来源: https://dev.mysql.com/doc/mysql-installation-excerpt/5.5/en/docker-mysql-getting-started.html#docker-download-image

    对与一个 linux 新手翻译上面两段话还是挺困难的,不知道你怎么翻译

    6 replies    2019-02-21 22:10:59 +08:00
    daijinming
        1
    daijinming  
    OP
       Feb 21, 2019
    shell 怎么解释,bash shell 有怎么理解
    PureWhiteWu
        2
    PureWhiteWu  
       Feb 21, 2019
    如果你想要获得你的 MySQL 服务器所在容器的命令行权限,你可以使用“ docker exec -it ”命令在容器里面启动一个 bash 命令行。

    你可以使用“ docker exec -it ”命令在容器里面启动一个 bash 命令行来和你的 MySQL 服务器所在的容器进行交互。
    ty4z2008
        3
    ty4z2008  
       Feb 21, 2019
    想要通过 shell 访问容器内部的 MySQL 服务,可以通过`docker exec it`命令访问
    xfspace
        4
    xfspace  
       Feb 21, 2019 via Android
    @ty4z2008
    @PureWhiteWu
    这个语境称“ docker 容器”可能更适合
    PureWhiteWu
        5
    PureWhiteWu  
       Feb 21, 2019
    @xfspace 都说是语境了,有上下文,不用多此一举说 “ docker ”
    msg7086
        6
    msg7086  
       Feb 21, 2019
    需要使用容器内的 Shell 命令行时,可以执行 docker exec -it 命令在容器内启动一个 bash。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3128 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 14:41 · PVG 22:41 · LAX 07:41 · JFK 10:41
    ♥ Do have faith in what you're doing.