Welcome to the Linux Foundation Forum!

Lab 18.1. Make a Small Utility Available with Docker

Hi it is me again,
in the exercise above i installed docker desktop but failed to create the docker file like it is described in the solution....i dont get how to do this....did i miss something?? thanks for help

best regards berni

Best Answer

  • luisviveropena
    luisviveropena Posts: 1,336
    Answer ✓

    Hi Berni,

    Don't worry, I'm here to help :)

    so again how to exactly create that file?

    You go to the terminal and do:

    touch httpie.Dockerfile

    Then you can edit it with your favorite text editor. In my case I use vim. So I'd run:

    vim httpie.Dockerfile

    , then put the content in there, save it and quit.

    For simplicity you may find useful 'nano', as in:

    nano httpie.Dockerfile

    Regards,
    Luis.

Answers

  • luisviveropena
    luisviveropena Posts: 1,336

    Hi Berni,

    The error says that file httpie.Dockerfile isn't there. So, you need to create that file with the content on it, and then run the docker build command in the same directory where the file is located.

    Please check on this and let me know.

    Regards,
    Luis.

  • Hi Luis,

    that was the thing according to the manual i could not understand how to create that file properly, sorry for asking so many questions..so again how to exactly create that file? Thanks for your time and work!

Categories

Upcoming Training