Home > Operation and Maintenance > Docker > Summary of common docker statements

Summary of common docker statements

王林
Release: 2020-10-30 17:19:13
forward
2201 people have browsed it

Summary of common docker statements

Create container: nvidia-docker run -it -p Host port: docker container port PEPOSITORY:TAG /bin/bash

(Recommended tutorial: docker Tutorial)

Stop the container: docker stop

Exit but not stop: Ctrl p q

Rename the container: docker rename original container name new container name

Move the host container to docker: docker copy host file path container name:/path

docker View all containers: docker ps --all

docker jupyter notebook remote connection method :jupyter notebook --no-browser --port Container port --ip container ip

View docker container ip: docker inspect container name | grep IPAddress

Jupyter notebook connecting to the server: ssh - L local port: localhost: server port username@server ip

Modify user password: passwd user (after configuring the ssh service, you need to modify the user password to connect)

Print the current python interpreter path: import sys sys.executable

The above is the detailed content of Summary of common docker statements. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
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