1.docker run介绍
docker run命令是用来创建新的容器并运行相关命令
2.docker run用法
docker run [参数]
[root@centos79 ~]# docker run --helpUsage: docker run [OPTIONS] IMAGE [COMMAND] [ARG...]Create and run a new container from an imageAliases:docker container run, docker runOptions:--add-host list Add a custom host-to-IP mapping (host:ip)--annotation map Add an annotation to the container (passed through to the OCI runtime) (default map[])-a, --attach list Attach to STDIN, STDOUT or STDERR--blkio-weight uint16 Block IO (relative weight), between 10 and 1000, or 0 to disable (default 0)--blkio-weight-device list Block IO weight (relative device weight) (default [])--cap-add list Add Linux capabilities--cap-drop list Drop Linux capabilities--cgroup-parent string Optional parent cgroup for t