|
我没看到运行起来了呀
我重新拉了镜像运行,但是还行还是报错
以下是运行代码和报错:
- root@aml-s805:/var/lib/docker# docker run \
- > --restart always \
- > --name tiantang-auto-harvest \
- > -p 1999:80 \
- > -v /var/lib/docker/tiantang-auto:/app/data \
- > -e TZ=Asia/Shanghai \
- > --privileged=true \
- > boris1993/tiantang-auto-harvest:latest
- docker: Error response from daemon: Conflict. The container name "/tiantang-auto-harvest" is already in use by container "ebdb0e4097d91602b8f92485453c50a176de0a11a019e2df02049115a997f125". You have to remove (or rename) that container to be able to reuse that name.
- See 'docker run --help'.
- root@aml-s805:/var/lib/docker# docker run --restart always --name tiantang-auto-harvest -p 1999:80 -v /var/lib/docker/tiantang-auto:/app/data -e TZ=Asia/Shanghai --privileged=true boris1993/tiantang-auto-harvest:latest
- Unable to find image 'boris1993/tiantang-auto-harvest:latest' locally
- latest: Pulling from boris1993/tiantang-auto-harvest
- 59dbb2ac3829: Already exists
- fe6b23b711a8: Already exists
- 07ad3d2d0aef: Already exists
- b6a5ea568e6c: Already exists
- c75f4ba02ae1: Already exists
- f8132ef94059: Pull complete
- 8186e0ae0f68: Pull complete
- Digest: sha256:34732803bb88a795d19891cea8941dca2356f242fa55d2f5200da80c52f3200c
- Status: Downloaded newer image for boris1993/tiantang-auto-harvest:latest
- warn: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[60] Storing keys in a directory '/root/.aspnet/DataProtection-Keys' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed.
- warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35] No XML encryptor configured. Key {62548dfc-331f-4019-84f1-2307105fe771} may be persisted to storage in unencrypted form.
- info: Microsoft.Hosting.Lifetime[14] Now listening on: http://[::]:80
- info: Microsoft.Hosting.Lifetime[0] Application started. Press Ctrl+C to shut down.
- info: Microsoft.Hosting.Lifetime[0] Hosting environment: Production
- info: Microsoft.Hosting.Lifetime[0] Content root path: /app
复制代码
我看到多了一个这个镜像,是干么的呢?
- mcr.microsoft.com/dotnet/samples:aspnetapp
复制代码
|
|