当尝试使用容器名称运行docker时,我收到以下错误(在macOS上(
~$ docker run -it myifort --name cont
docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "--name": executable file not found in $PATH: unknown.
ERRO[0000] error waiting for container: context canceled
如果没有--name标志,一切都会按预期进行。
尝试docker run -it --name cont myifort