# Dockerfile **Repository Path**: meishibiexuejava/Dockerfile ## Basic Information - **Project Name**: Dockerfile - **Description**: dockerfile - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-08-24 - **Last Updated**: 2025-08-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Dockerfile #### 介绍 ```sh jdk镜像制作 tomcat镜像制作 nginx镜像制作 ``` # 使用说明 ## 说明 【执行命令】 中的 运行容器 的命令最后指定的镜像 和 --name一样是因为镜像的,TAG是latest 是可以省略,可以直接写镜像的REPOSITORY,如果TAG是1.0 那么就要写成REPOSITORY:TAG ## 1.制作镜像(idea) ### 如果只制作镜像,容器启动自己手动执行,在idea配置如下(参考) ![images](图/images.png) ## 2.制作镜像+运行容器(idea) ### 如果制作镜像+运行容器,在idea配置如下(参考) ![container](图/container.png) ## 3.Linux下执行Dockerfile ### 每个目录下有一个 【执行命令】 的文件,就是在linux下执行的命令