Home  >  Article  >  Operation and Maintenance  >  How to enter the local docker container

How to enter the local docker container

angryTom
angryTomOriginal
2020-03-13 16:36:492553browse

How to enter the local docker container

How to enter the local docker container

docker provides a new command after version 1.3.Xexec Used to enter the container, this method is relatively simple. Let's take a look at the use of this command:

$ sudo docker exec --help

How to enter the local docker container

Next we use this command to enter an already running Container

$sudo docker ps -a
$sudo docker exec -it 775c7c9ee1e1 /bin/bash

Recommended reading:

How to enter the docker container

The above is the detailed content of How to enter the local docker container. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn