C:\Users\mites>docker pull busybox
Using default tag: latest
latest: Pulling from library/busybox
no matching manifest for unknown in the manifest list entries
Run Code Online (Sandbox Code Playgroud)
怎么解决这个?它会在每个拉动命令上出现.
我想在我的 Docker 容器中运行 IIS
但是当我写这个命令时:
docker pull microsoft/windowsservercore
Run Code Online (Sandbox Code Playgroud)
我收到此错误:
使用默认标记:来自守护进程的最新错误响应:microsoft/windowsservercore 清单:未找到最新
我正在尝试在容器映像上启用远程桌面。
FROM mcr.microsoft.com/windows:2004
EXPOSE 3389
RUN net user administrator Stack0verflow
RUN net user administrator /active:yes
# I tried disabling the firewall; but this command errors as Windows Defender Firewall service
# is not enabled; so presumably if the firewall's not running, it's not a firewall issue.
#RUN netsh advfirewall set allprofiles state off
# switch shell to powershell (note: pwsh not available on the image)
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; $ExecutionPolicy = 'Unrestricted';"]
# enable …Run Code Online (Sandbox Code Playgroud) containers remote-desktop terminal-services docker windows-10
我想要的是: dockerize一个Node.js Web应用程序(我在Windows上)
docker-compose up 让我这个错误:
Service 'webapp' failed to build: no matching manifest for windows/amd64 in the manifest list entries
Run Code Online (Sandbox Code Playgroud)
据我了解,这是因为Windows没有Node.js映像,而解决方法是切换到Linux容器。
当我尝试切换到linux容器时,Docker告诉我我没有足够的内存。通过设置更改分配的内存量不会解决该问题。
编辑:文件
docker-compose
version: '3'
services:
webapp:
build: ./Front
volumes:
- ./Front:./dockerized
ports:
- 5001:8080
Run Code Online (Sandbox Code Playgroud)
Dockerfile:
FROM node:alpine
RUN mkdir -p ../dockerized
WORKDIR ../dockerized
COPY package*.json ../dockerized
RUN npm install
COPY . ../dockerized
EXPOSE 8080
CMD [ "npm", "start" ]
Run Code Online (Sandbox Code Playgroud)