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

翻译 Container Shell Access

  •  
  •   daijinming · Feb 21, 2019 · 2547 views
    This topic created in 2829 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
    daijinming
    OP
    Feb 21, 2019
    1
    shell 怎么解释,bash shell 有怎么理解
    PureWhiteWu
    PureWhiteWu
    Feb 21, 2019
    2
    如果你想要获得你的 MySQL 服务器所在容器的命令行权限,你可以使用“ docker exec -it ”命令在容器里面启动一个 bash 命令行。

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