在 Windows 上安装 Docker 容器

时间:2021-04-18 23:22:58

标签: docker docker-compose

我对 Docker 完全是个菜鸟,所以我可能遇到了一个非常愚蠢的问题,但我似乎无法解决它。

我正在尝试在 Windows 上安装一个容器。这个:

var keyedService = services.KeyedSingleton<IService, ServiceKey>()
    .As<ICustomKeyedService<TKey, IService>>((_, x) => new CustomKeyedServiceInterface<ServiceKey, IService>(x));
keyedService.Key(ServiceKey.A).Add<ServiceA>();
keyedService.Key(ServiceKey.B).Add(x => {
    x.GetService<ILogger>.LogDebug("Instantiating ServiceB");
    return new ServiceB();
});

用我的存储位置等替换一些行后,我得到的是;

docker run --pull=always
           --volume /your/download/path/:/data/downloads \
           --volume /your/storage/path/:/data/db \
           --log-driver json-file \
           --log-opt max-size=10m \
           -p 6500:6500 \
           --name rdtclient \
           rogerfar/rdtclient:latest

几乎每一行。就像我说的,我是新手,所以如果这里有人知道我做错了什么,我会很感激。

0 个答案:

没有答案