我正在尝试运行postgres
docker:
docker run --name some-postgres -e POSTGRES_PASSWORD=123456 -d postgres
我收到了错误信息:
docker: Error response from daemon: Conflict. The container name "/some-postgres" is already in use by container "93b72872c89cf7497872b0bc0e98d5a91078666945e3ca39ce5cbb36c436b5af". You have to remove (or rename) that container to be able to reuse that name.
我进行了核实:
sudo docker ps
而且没有什么:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
(空)
- 那么,为什么我会收到这个错误信息?
- 如果容器名称已经存在,我该如何运行它?