I have made images ubuntu 14:04 on dockerfile
I am running the syntax
$ sudo docker build -t mypostgres .
but I am still confused as to build the dockerfile how to build it?
A Dockerfile is a text document that contains all the commands a user could call on the command line to assemble an image. Using docker build users can create an automated build that executes several command-line instructions in succession.
sudo docker build -t mypostgres .
means:
Dockerfile
' (default name) .
)mypostgres
So if you have a Dockerfile starting with FROM postgres
, you can execute your command and have your own postgres image in no time.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With