Can't create docker file and Project file using Docker





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







1















I need to create an Azure function project via Docker. I learned something about the docker commands for creating the function app project and templates.



I already installed the docker and related SDKs in my system.



I used this command for create function with docker file "func init . --docker" but it'd not working properly,
enter image description here



enter image description here
This is the files created without the docker file, I don't know why it's not create.



After that I execute the "func new" command for creating the function with language and Function Templates also selected,



enter image description here



enter image description here



And also not create the project(*.csproj) file.
I executed the commands properly but why it's not coming I don't know about it. Please give me a solution for this.
Thank you.










share|improve this question





























    1















    I need to create an Azure function project via Docker. I learned something about the docker commands for creating the function app project and templates.



    I already installed the docker and related SDKs in my system.



    I used this command for create function with docker file "func init . --docker" but it'd not working properly,
    enter image description here



    enter image description here
    This is the files created without the docker file, I don't know why it's not create.



    After that I execute the "func new" command for creating the function with language and Function Templates also selected,



    enter image description here



    enter image description here



    And also not create the project(*.csproj) file.
    I executed the commands properly but why it's not coming I don't know about it. Please give me a solution for this.
    Thank you.










    share|improve this question

























      1












      1








      1








      I need to create an Azure function project via Docker. I learned something about the docker commands for creating the function app project and templates.



      I already installed the docker and related SDKs in my system.



      I used this command for create function with docker file "func init . --docker" but it'd not working properly,
      enter image description here



      enter image description here
      This is the files created without the docker file, I don't know why it's not create.



      After that I execute the "func new" command for creating the function with language and Function Templates also selected,



      enter image description here



      enter image description here



      And also not create the project(*.csproj) file.
      I executed the commands properly but why it's not coming I don't know about it. Please give me a solution for this.
      Thank you.










      share|improve this question














      I need to create an Azure function project via Docker. I learned something about the docker commands for creating the function app project and templates.



      I already installed the docker and related SDKs in my system.



      I used this command for create function with docker file "func init . --docker" but it'd not working properly,
      enter image description here



      enter image description here
      This is the files created without the docker file, I don't know why it's not create.



      After that I execute the "func new" command for creating the function with language and Function Templates also selected,



      enter image description here



      enter image description here



      And also not create the project(*.csproj) file.
      I executed the commands properly but why it's not coming I don't know about it. Please give me a solution for this.
      Thank you.







      c# docker .net-core dockerfile






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 3 at 7:10









      Ismayil SIsmayil S

      7313




      7313
























          1 Answer
          1






          active

          oldest

          votes


















          1














          I've got this up and running in WSL
          As stated in the readme one should make sure everything is set up correctly.




          1. Start up WSL

          2. run wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb


            • This will download a file needed to install azure functions correctly.



          3. run sudo dpkg -i packages-microsoft-prod.deb to install the previously downloaded package.

          4. run sudo apt-get update to update your local aptitude cache.

          5. run sudo apt-get install azure-functions-core-tools to install the azure functions core tools.

          6. Make sure dotnet is installed: run sudo apt-get install dotnet-sdk-2.2

          7. Run func init . --docker and select dotnet as framework (option 1)


          This will result into a list of files in your current directory:



          .
          ├── Dockerfile
          ├── host.json
          ├── local.settings.json
          └── test.csproj

          0 directories, 4 files


          You can now create an Azure function by running func new. Select a template (HttpTrigger, option 2), provide a name SampleFunction and you have your function ready.



          Your directory now looks like this:



          .
          ├── Dockerfile
          ├── SampleFunction.cs
          ├── host.json
          ├── local.settings.json
          └── test.csproj

          0 directories, 5 files


          This is all done with func version 2.3.199






          share|improve this answer
























          • Thanks for reply, but, is this windows container or linux. Because I already installed all the things from your provide the link based with the windows. you mention your answer with linux also??? And also I'm working for function app core.

            – Ismayil S
            Jan 7 at 6:29











          • This is done with WSL on windows as linux containers. Did you use the v1 or v2 npm package? If v2 the steps after step 6 will/should be the same if i'm correct. Can you run func --version in powershell? Regarding windows/linux containers.. Did you install docker on windows and use 'linux containers' or did you explicitly change the setting to use windows containers? If the first you should get the same results, if the latter you should aswell but i'm not 100% sure

            – Baklap4
            Jan 7 at 7:47













          • Yeah! I tried all the steps that link provided for windows. And also configured the docker in my system properly. But, the expected results are not came. You provided the linux based configuration, I no need that so, I posted the question.

            – Ismayil S
            Jan 7 at 13:38











          • Thanks for reply.

            – Ismayil S
            Jan 7 at 13:39












          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54017805%2fcant-create-docker-file-and-project-file-using-docker%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          I've got this up and running in WSL
          As stated in the readme one should make sure everything is set up correctly.




          1. Start up WSL

          2. run wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb


            • This will download a file needed to install azure functions correctly.



          3. run sudo dpkg -i packages-microsoft-prod.deb to install the previously downloaded package.

          4. run sudo apt-get update to update your local aptitude cache.

          5. run sudo apt-get install azure-functions-core-tools to install the azure functions core tools.

          6. Make sure dotnet is installed: run sudo apt-get install dotnet-sdk-2.2

          7. Run func init . --docker and select dotnet as framework (option 1)


          This will result into a list of files in your current directory:



          .
          ├── Dockerfile
          ├── host.json
          ├── local.settings.json
          └── test.csproj

          0 directories, 4 files


          You can now create an Azure function by running func new. Select a template (HttpTrigger, option 2), provide a name SampleFunction and you have your function ready.



          Your directory now looks like this:



          .
          ├── Dockerfile
          ├── SampleFunction.cs
          ├── host.json
          ├── local.settings.json
          └── test.csproj

          0 directories, 5 files


          This is all done with func version 2.3.199






          share|improve this answer
























          • Thanks for reply, but, is this windows container or linux. Because I already installed all the things from your provide the link based with the windows. you mention your answer with linux also??? And also I'm working for function app core.

            – Ismayil S
            Jan 7 at 6:29











          • This is done with WSL on windows as linux containers. Did you use the v1 or v2 npm package? If v2 the steps after step 6 will/should be the same if i'm correct. Can you run func --version in powershell? Regarding windows/linux containers.. Did you install docker on windows and use 'linux containers' or did you explicitly change the setting to use windows containers? If the first you should get the same results, if the latter you should aswell but i'm not 100% sure

            – Baklap4
            Jan 7 at 7:47













          • Yeah! I tried all the steps that link provided for windows. And also configured the docker in my system properly. But, the expected results are not came. You provided the linux based configuration, I no need that so, I posted the question.

            – Ismayil S
            Jan 7 at 13:38











          • Thanks for reply.

            – Ismayil S
            Jan 7 at 13:39
















          1














          I've got this up and running in WSL
          As stated in the readme one should make sure everything is set up correctly.




          1. Start up WSL

          2. run wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb


            • This will download a file needed to install azure functions correctly.



          3. run sudo dpkg -i packages-microsoft-prod.deb to install the previously downloaded package.

          4. run sudo apt-get update to update your local aptitude cache.

          5. run sudo apt-get install azure-functions-core-tools to install the azure functions core tools.

          6. Make sure dotnet is installed: run sudo apt-get install dotnet-sdk-2.2

          7. Run func init . --docker and select dotnet as framework (option 1)


          This will result into a list of files in your current directory:



          .
          ├── Dockerfile
          ├── host.json
          ├── local.settings.json
          └── test.csproj

          0 directories, 4 files


          You can now create an Azure function by running func new. Select a template (HttpTrigger, option 2), provide a name SampleFunction and you have your function ready.



          Your directory now looks like this:



          .
          ├── Dockerfile
          ├── SampleFunction.cs
          ├── host.json
          ├── local.settings.json
          └── test.csproj

          0 directories, 5 files


          This is all done with func version 2.3.199






          share|improve this answer
























          • Thanks for reply, but, is this windows container or linux. Because I already installed all the things from your provide the link based with the windows. you mention your answer with linux also??? And also I'm working for function app core.

            – Ismayil S
            Jan 7 at 6:29











          • This is done with WSL on windows as linux containers. Did you use the v1 or v2 npm package? If v2 the steps after step 6 will/should be the same if i'm correct. Can you run func --version in powershell? Regarding windows/linux containers.. Did you install docker on windows and use 'linux containers' or did you explicitly change the setting to use windows containers? If the first you should get the same results, if the latter you should aswell but i'm not 100% sure

            – Baklap4
            Jan 7 at 7:47













          • Yeah! I tried all the steps that link provided for windows. And also configured the docker in my system properly. But, the expected results are not came. You provided the linux based configuration, I no need that so, I posted the question.

            – Ismayil S
            Jan 7 at 13:38











          • Thanks for reply.

            – Ismayil S
            Jan 7 at 13:39














          1












          1








          1







          I've got this up and running in WSL
          As stated in the readme one should make sure everything is set up correctly.




          1. Start up WSL

          2. run wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb


            • This will download a file needed to install azure functions correctly.



          3. run sudo dpkg -i packages-microsoft-prod.deb to install the previously downloaded package.

          4. run sudo apt-get update to update your local aptitude cache.

          5. run sudo apt-get install azure-functions-core-tools to install the azure functions core tools.

          6. Make sure dotnet is installed: run sudo apt-get install dotnet-sdk-2.2

          7. Run func init . --docker and select dotnet as framework (option 1)


          This will result into a list of files in your current directory:



          .
          ├── Dockerfile
          ├── host.json
          ├── local.settings.json
          └── test.csproj

          0 directories, 4 files


          You can now create an Azure function by running func new. Select a template (HttpTrigger, option 2), provide a name SampleFunction and you have your function ready.



          Your directory now looks like this:



          .
          ├── Dockerfile
          ├── SampleFunction.cs
          ├── host.json
          ├── local.settings.json
          └── test.csproj

          0 directories, 5 files


          This is all done with func version 2.3.199






          share|improve this answer













          I've got this up and running in WSL
          As stated in the readme one should make sure everything is set up correctly.




          1. Start up WSL

          2. run wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb


            • This will download a file needed to install azure functions correctly.



          3. run sudo dpkg -i packages-microsoft-prod.deb to install the previously downloaded package.

          4. run sudo apt-get update to update your local aptitude cache.

          5. run sudo apt-get install azure-functions-core-tools to install the azure functions core tools.

          6. Make sure dotnet is installed: run sudo apt-get install dotnet-sdk-2.2

          7. Run func init . --docker and select dotnet as framework (option 1)


          This will result into a list of files in your current directory:



          .
          ├── Dockerfile
          ├── host.json
          ├── local.settings.json
          └── test.csproj

          0 directories, 4 files


          You can now create an Azure function by running func new. Select a template (HttpTrigger, option 2), provide a name SampleFunction and you have your function ready.



          Your directory now looks like this:



          .
          ├── Dockerfile
          ├── SampleFunction.cs
          ├── host.json
          ├── local.settings.json
          └── test.csproj

          0 directories, 5 files


          This is all done with func version 2.3.199







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 4 at 15:20









          Baklap4Baklap4

          1,73811236




          1,73811236













          • Thanks for reply, but, is this windows container or linux. Because I already installed all the things from your provide the link based with the windows. you mention your answer with linux also??? And also I'm working for function app core.

            – Ismayil S
            Jan 7 at 6:29











          • This is done with WSL on windows as linux containers. Did you use the v1 or v2 npm package? If v2 the steps after step 6 will/should be the same if i'm correct. Can you run func --version in powershell? Regarding windows/linux containers.. Did you install docker on windows and use 'linux containers' or did you explicitly change the setting to use windows containers? If the first you should get the same results, if the latter you should aswell but i'm not 100% sure

            – Baklap4
            Jan 7 at 7:47













          • Yeah! I tried all the steps that link provided for windows. And also configured the docker in my system properly. But, the expected results are not came. You provided the linux based configuration, I no need that so, I posted the question.

            – Ismayil S
            Jan 7 at 13:38











          • Thanks for reply.

            – Ismayil S
            Jan 7 at 13:39



















          • Thanks for reply, but, is this windows container or linux. Because I already installed all the things from your provide the link based with the windows. you mention your answer with linux also??? And also I'm working for function app core.

            – Ismayil S
            Jan 7 at 6:29











          • This is done with WSL on windows as linux containers. Did you use the v1 or v2 npm package? If v2 the steps after step 6 will/should be the same if i'm correct. Can you run func --version in powershell? Regarding windows/linux containers.. Did you install docker on windows and use 'linux containers' or did you explicitly change the setting to use windows containers? If the first you should get the same results, if the latter you should aswell but i'm not 100% sure

            – Baklap4
            Jan 7 at 7:47













          • Yeah! I tried all the steps that link provided for windows. And also configured the docker in my system properly. But, the expected results are not came. You provided the linux based configuration, I no need that so, I posted the question.

            – Ismayil S
            Jan 7 at 13:38











          • Thanks for reply.

            – Ismayil S
            Jan 7 at 13:39

















          Thanks for reply, but, is this windows container or linux. Because I already installed all the things from your provide the link based with the windows. you mention your answer with linux also??? And also I'm working for function app core.

          – Ismayil S
          Jan 7 at 6:29





          Thanks for reply, but, is this windows container or linux. Because I already installed all the things from your provide the link based with the windows. you mention your answer with linux also??? And also I'm working for function app core.

          – Ismayil S
          Jan 7 at 6:29













          This is done with WSL on windows as linux containers. Did you use the v1 or v2 npm package? If v2 the steps after step 6 will/should be the same if i'm correct. Can you run func --version in powershell? Regarding windows/linux containers.. Did you install docker on windows and use 'linux containers' or did you explicitly change the setting to use windows containers? If the first you should get the same results, if the latter you should aswell but i'm not 100% sure

          – Baklap4
          Jan 7 at 7:47







          This is done with WSL on windows as linux containers. Did you use the v1 or v2 npm package? If v2 the steps after step 6 will/should be the same if i'm correct. Can you run func --version in powershell? Regarding windows/linux containers.. Did you install docker on windows and use 'linux containers' or did you explicitly change the setting to use windows containers? If the first you should get the same results, if the latter you should aswell but i'm not 100% sure

          – Baklap4
          Jan 7 at 7:47















          Yeah! I tried all the steps that link provided for windows. And also configured the docker in my system properly. But, the expected results are not came. You provided the linux based configuration, I no need that so, I posted the question.

          – Ismayil S
          Jan 7 at 13:38





          Yeah! I tried all the steps that link provided for windows. And also configured the docker in my system properly. But, the expected results are not came. You provided the linux based configuration, I no need that so, I posted the question.

          – Ismayil S
          Jan 7 at 13:38













          Thanks for reply.

          – Ismayil S
          Jan 7 at 13:39





          Thanks for reply.

          – Ismayil S
          Jan 7 at 13:39




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54017805%2fcant-create-docker-file-and-project-file-using-docker%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

          SQL update select statement

          'app-layout' is not a known element: how to share Component with different Modules