Hello,
I’m trying to get started with DOCKER so I installed Docker Desktop CE in a new Windows laptop. When I try building a Docker image from the Poweshell, it signals a warning about the instructions (see screenshot) that I do not understand and kills the installation by RST_STREAM. I wasn’t sure about the syntax of the Dockerfile so (at this point) it’s an empty file in the subdirectory where I’m trying to build.
Thanks.
Ther is no such thing. Ther is Docker Desktop and Docker CE.
So what did you expect from an empty file? I don’t know what echo $null does in powershell, but if you wrote Windows line endings or any special charcter / bytes into the Dockerfile in Linux containers mode, that could be a problem.
Since there was no content just some strange bytes at the beginning of the file, it was interpreted as an instruction in the Dockerfile. Docker Desktop shows recommendations to use consistent instructions like always using RUN instead of RUN and run, or using AS in FROM ubuntu:22.04 AS base instead of FROM ubuntu:22.04 as base. It is just a warning and not the one that “killed” the build, but the invalid content.
Hi @rimelek,
You’re right, I installed Docker Desktop in the laptop (which is the final goal) plus Docker CE in an AWS instance, and fumbled the names. As mentioned in the P.S. I had to change the encoding to UTF-8 and added 2 lines. The first line reads: FROM mcr.microsoft.com/windows/servercore:ltsc2019
This started the process but now the system is now unable to download from mcr.microsft.com/windows/servercore (have tried both ltsc2019 and 2022) as shown in the screenshot.
Because you are trying to download a windows container image to a Desktop running in linux container mode. If you want to work with Windows containers, switch to Windows containers mode. Notification area » Whale icon, Switch to Windows containers
You can check the getting started guide as well
NOTE: I edited your post to add code blocks. Please, read our formatting guide and also share text instead of screenshots to make it searchable and copy-pastable for other users: