"docker run" requires at least 1 argument.
时间: 2023-04-09 19:03:01 浏览: 857
这是一个技术问题,我可以回答。 "docker run" 命令至少需要一个参数,即要运行的镜像名称。例如,要运行一个名为 "nginx" 的镜像,可以使用以下命令: "docker run nginx"。
相关问题
docker start requires at least 1argument
Yes, that's correct. The "docker start" command is used to start one or more stopped containers. To use this command, you need to specify at least one container ID or name as an argument. For example:
```
docker start my-container
```
This command will start the container with the name "my-container". You can also start multiple containers at once by specifying multiple container IDs or names:
```
docker start container1 container2 container3
```
This command will start containers with the names "container1", "container2", and "container3".
阅读全文