Home > Article > Operation and Maintenance > 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!