Giter Club home page Giter Club logo

docker-unbuntu-gitea's Introduction

注意事项

  • dockerfile 是镜像的描述文件,docker-compose 是容器的描述文件,对于容器中挂载的文件夹的操作在 dockerfile 中要放在 ENTRYPOINT 中
  • su - 切换用户和切换用户后要执行的命令的两个行为使用&& 不生效,需要指定-c 一次完成
  • dockerfile 中不常变动的层放在前面,后面改动测试时被修改的层的之前的层不会再执行一遍,节省资源
  • docker composer up --build 会在启动容器的时候先 build 操作
  • 构建自有镜像:docker build -t gitea:unbuntu .
  • 删除测试产生的空镜像 :docker rmi $(docker images | grep "none" | awk '{print $3}')
  • dockerfile 定义镜像时,不要直接把配置文件拷到被挂载的目录中,先放到自定义的临时目录中,再在 ENTRYPOINT 去操作

docker-unbuntu-gitea's People

Watchers

William avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.