Docker 教程 - Docker 命令

Docker 教程 - Docker 命令

查看帮助

$ sudo docker help

Docker 命令

命令 功能
attach Attach local standard input, output, and error streams to a running container
build Build an image from a Dockerfile
通过Dockerfile建立一个镜像
commit Create a new image from a container’s changes
cp Copy files/folders between a container and the local filesystem
在本地文件系统和容器之间复制文件或文件夹
create Create a new container
新建一个容器
diff Inspect changes to files or directories on a container’s filesystem
events Get real time events from the server
exec Run a command in a running container
在正在运行的容器中执行命令
export Export a container’s filesystem as a tar archive
history Show the history of an image
images List images
列出所有的镜像
import Import the contents from a tarball to create a filesystem image
info Display system-wide information
inspect Return low-level information on Docker objects
显示某个容器的信息
kill Kill one or more running containers
结束一个或多个正在运行的容器
load Load an image from a tar archive or STDIN
login Log in to a Docker registry
logout Log out from a Docker registry
logs Fetch the logs of a container
pause Pause all processes within one or more containers
port List port mappings or a specific mapping for the container
ps List containers
列出所有容器
pull Pull an image or a repository from a registry
push Push an image or a repository to a registry
rename Rename a container
重命名容器
restart Restart one or more containers
重启一个或多个容器
rm Remove one or more containers
删除一个或多个容器
rmi Remove one or more images
删除一个或多个镜像
run Run a command in a new container
在一个新的容器内执行命令
save Save one or more images to a tar archive (streamed to STDOUT by default)
search Search the Docker Hub for images
Docker Hub查找镜像
start Start one or more stopped containers
启动一个或多个停止的容器
stats Display a live stream of container(s) resource usage statistics
stop Stop one or more running containers
停止一个或多个容器
tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
top Display the running processes of a container
显示一个容器正在运行的进程
unpause Unpause all processes within one or more containers
update Update configuration of one or more containers
更新一个或多个容器的配置
version Show the Docker version information
显示Docker的版本信息
wait Block until one or more containers stop, then print their exit codes

你可能感兴趣的:(Docker教程,docker,linux)