The 'from' Keyword is not supported in this version of language

While i am running following command in powershell in windows server 2016 : FROM microsoft/windowsservercore RUN dism /online /enable-feature /all /featurename:iis-webserver /NoRestart.
I am getting “The ‘from’ Keyword is not supported in this version of language” error.
I have attached the screen shot as well.Due to this,i am not able to proceed.
Please help me in this regard.

I am editing this question :
Actually i was wrong running FROM keyword in powershell.This will be dockerfile.Also when copy above from command in docker file and run docker build -t windowsserveriis ., then i am getting ltsc2019: Pulling from windows/servercore
no matching manifest for windows/amd64 10.0.14393 in the manifest list entries error

You should create a text file with FROM not to run it in command shell

1 Like

Here is an example how you should use FROM keyword in a Dockerfile:

Code_iwXdDwokrf