How to enter the local docker container

angryTom
Release: 2020-03-13 16:36:49
Original
2566 people have browsed it

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
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template