您好,我正在尝试让nginx
服务器在容器中工作。我遵循了以下指南:
https://www.youtube.com/watch?v=Vyp5_F42NG
当我运行命令docker run --name my-nginx -p 80:80 nginx:1.10.2-alpine
而不是启动服务器时,我收到以下错误:
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: Conflict. The container name "/my-nginx" is already in use by container "06e1b1fdbfa2aff0a977fb73ce7895fd1deb2986080c83a1af5d292f8f3d2791". You have to remove (or rename) that container to be able to reuse that name.
See 'C:\Program Files\Docker\Docker\Resources\bin\docker.exe run --help'.
执行后docker ps -a
我得到了一个 docker 实例,但它无论如何都无法运行。
我在这里遗漏了什么?