GithubHelp home page GithubHelp logo

stuq_dockerfile's Introduction

StuQ 课程 《Dockerfile实战经验分享》

近几年容器技术逐渐被用户所认可,一些企业已经在开发测试及生产环境进行了部署和应用。但随着容器技术的引进,也随之带来了新的技术新的工作方式

Docker镜像与镜像仓库可以说是容器技术带来的最伟大的发明,它将业务代码与环境打包在一个分层的镜像中,通过类似代码仓库的方式进行镜像的管理。

Docker强调的 Build、Ship、Run 所指的核心就是镜像,因此本次课程正是针对这个核心来讲解。

下面简单介绍一下随Docker一起引出的新技术:

镜像 (Image)

镜像就是业务代码依赖环境的一个打包封装。它是以层状文件的形式来存储。可以用增量存储的方式来理解镜像的存储。

容器 (Container)

运行起来的镜像,我们称之为容器,可以拿程序和进程,进行对比理解。运行起来的容器与宿主机之间是隔离的,容器与容器之间也是隔离的。

镜像仓库 (Docker Image Registry)

容器技术并不是Docker发明的,但镜像仓库我认为是Docker公司最伟大的发明。它可以将镜像以代码仓库的**来进行存储和分发。可以说颠覆了软件的交付方式。

Dockerfile

dockerfile是咱们本次课程的主角,它是镜像的基础描述文件,没有dockerfile就没有镜像,没有镜像更甭提容器。因此Dockerfile是咱们学习容器的基石。

章节介绍

本次课程主要分为四个章节:

  • 第0章:课程背景知识

本次课程需要有一定的技术基础知识,包括Linux系统基础,Shell编程基础,Docker安装使用经验等。

  • 第1章:Docker存储原理与方式

这个章节主要从理论出发,介绍Docker的几种存储类型开始介绍,逐步引出镜像的存储和管理。

  • 第2章:Dockerfile基础

介绍Dockerfile的主要指令,并针对一些容易混淆的指令进行讲解,最后会提供一些Dockerfile的书写规范。

  • 第3章:Dockerfile调试技巧

这一章是本次课程的重点内容,Dockerfile编写技巧,调试技巧都在这一章中介绍,并结合实例进行强化训练

  • 第4章:常见问题

这一章主要针对一些常见的问题进行解答,把我之前踩过的坑跟大家一起分享。

stuq_dockerfile's People

Contributors

zhouyq avatar

Watchers

 avatar  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.