title: How to publish azure function in python using docker from my machine to azure?
body: <p>when I'm trying to publish my azure function in python to azure I get this following error.</p>
  
  <pre><code>pip version 10.0.1, however version 19.2.1 is available.
  You should consider upgrading via the 'python -m pip install --upgrade pip' command.
  ERROR: cannot install cryptography-2.7 dependency: binary dependencies without wheels are not supported.  Use the --build-native-deps option to automatically build and configure the dependencies using a Docker container. More information at https://aka.ms/func-python-publish
  </code></pre>
  
  <p>So, I have install docker and I have tried to push my function using the following command</p>
  
  <p>func azure functionapp publish timertriggerforstreaming --build-native-deps </p>
  
  <p>I didn't do anything I have just installed docker, 
  when I tried to publish I get the following error when I was using docker on windows container(My machine is windows 10).</p>
  
  <pre><code>Error running docker pull mcr.microsoft.com/azure-functions/python:2.0.12493-python3.6-buildenv.
  output: 2.0.12493-python3.6-buildenv: Pulling from azure-functions/python
  image operating system "Linux" cannot be used on this platform
  </code></pre>
  
  <p>Again I switch from Windows to Linux and again tried the same now it's taking a long time and I'm seeing the following output for a long time.
  <a href="https://i.stack.imgur.com/GyD6X.png" rel="nofollow noreferrer">see the image</a>
  Is the way I'm doing it right or wrong, or I need to Dockerize azure function on my own and to publish it</p>