No able to build the example code

Hi,

My docker is on Windows 2016. I am facing issue while building the example given here https://docs.docker.com/get-started/part2/

I hev switched to Linux container. It will be great help, if someone gives me idea how to proceed from here.

Command outputs are as following.

PS C:\apps\Docker> ls
Directory: C:\apps\Docker

Mode LastWriteTime Length Name


-a---- 7/17/2018 2:34 PM 689 app.py
-a---- 7/18/2018 11:04 AM 548 Dockerfile
-a---- 7/17/2018 2:32 PM 12 requirements.txt.txt

PS C:\apps\Docker> docker --version
Docker version 18.03.1-ce, build 9ee9f40

PS C:\apps\Docker> docker build -t friendlyhello .

Sending build context to Docker daemon 5.12kB
Step 1/7 : FROM python:2.7-slim
2.7-slim: Pulling from library/python
no matching manifest for windows/amd64 in the manifest list entries

Hi

Its because you have selected that you want to use windows container, but python:2.7-slim is build from linux (debian)
So, you can either click on the docker icon on your taskbar, and select “switch to linux containers”, or you can add this to your docker build: --platform linux (this requires you to enable experimental mode)