filmov
tv
Docker: Create docker file from terminal
Показать описание
So in this tutorial video you are going to learn how to create docker file via terminal
steps:
1- open terminal
2- type next command line and press enter : touch dockerfile
3- now you have to use vim text editor to type docker image , so type next command line and press enter : vim dockerfile
4- now you are going to see a new window :
a- to start to edit text you have to press "I"
b- now you have to type : From "type any image" . for example : From nginx
c- to save text you have to press : esc
d- text from this window you have to type : ":wq!" + enter
steps:
1- open terminal
2- type next command line and press enter : touch dockerfile
3- now you have to use vim text editor to type docker image , so type next command line and press enter : vim dockerfile
4- now you are going to see a new window :
a- to start to edit text you have to press "I"
b- now you have to type : From "type any image" . for example : From nginx
c- to save text you have to press : esc
d- text from this window you have to type : ":wq!" + enter