[Docker] Check the running container and enter there

In 2 lines

Type the command in the terminal.

Check the list of running containers

$ docker ps

Check the place of NAMES. This is the container name.

Enter the container

$ docker exec -it container name bash

The option -it is a combination of -i and -t, but the details are in the following article.

** What is Docker exec -it ** https://hacknote.jp/archives/56621/

Recommended Posts

[Docker] Check the running container and enter there
Check the contents by docker pull from ECR and start the container
How to check the logs in the Docker container
Copy and paste the file contents in Ubuntu's Docker container
Nginx container that displays the Hostname of the host running Docker
[Docker] When you enter the db container and look at the data, Japanese is displayed as ???
About Docker, disguise server and container
Until you build the docker environment and start / stop the Ubuntu container
Recreate the container and then start it
Kind @ Mac in Docker and vctl container
The story of updating SonarQube's Docker Container
Starting with installing Docker on EC2 and running Yellowfin in a container
Directly operate mariadb running in Docker container
[Docker] Start the container as soon as possible
How to mount the batch file location via WSL2 and start the Docker container
Monitor the Docker container and SystemD process on the same host with Zabbix on Ubuntu.
Check the version of the JDK installed and the version of the JDK enabled
Check the options set for the running Java process
Keep docker container running with no resident process running
I tried running Ansible on a Docker container
Change the location folder of Docker image & container
How Docker works ~ Implement the container in 60 lines
Small Docker container
Access and debug Circle CI Docker container with ssh
Run the Android emulator on Docker using Android Emulator Container Scripts
Verification of the relationship between Docker images and containers
A memorandum when installing Docker and building a Linux container
Check the rate limit application status of docker pull
The story of pushing a Docker container to GitHub Package Registry and Docker Hub with GitHub Actions