Instructions Common Dockerfile

 

Specific explanation: https://blog.csdn.net/achenyuan/article/details/80231922

 

The dockerfile jar file and generate a good tool to use ftp upload to linux server just to find a jar and put in a folder at the same level directory dockerfile

使用 docker build -t ordinary:v1.0 .

  EVERYTHING:

    1, the final surface of the representatives of looking dockerfile file in the current directory

    2, ordinary mirror name

    3, v1.0 version

View mirror and start

  1, the use of docker images to view the generated image

  2, docker create to create a container docker run to create and run a container

  3, can also be used docker logs container name --tail 100 -f to see the start of the project log to see whether the project start

  3, if all the above steps can be called normal IP ports to add direct access project

Guess you like

Origin www.cnblogs.com/ringwang/p/11967632.html