Code Monkey home page Code Monkey logo

docker-core-knowledge-workshop's Introduction

docker-core-knowledge-workshop

Demonstration code for docker core knowledge workshop.

コンテナ開発の流れ

  1. プログラムを作る (ruby, js, python, php, bashなど)
console.log("Hello World");
  1. Dockerfileを作成する
FROM node:19.4.0
WORKDIR /app
COPY scripts/hello_world.js .
CMD node hello_world.js
  1. コンテナイメージをビルドする
docker build -t {イメージ名} .
  1. コンテナを起動する
docker run --rm {イメージ名}
  1. コンテナをレジストリーにpushする
docker push {イメージ名}

Tag

  • イメージ名はスラッシュ(/)区切りの文字列で、形式が自由(h/e/l/l/oでも可能)
  • イメージ名の頭にレジストリのホスト名を付けることで、リモートレジストリと関連づける (例: my-registry.jp)
  • レジストリのホスト名はデフォルトでDockerHubになる(docker.io)
  • レジストリによって、イメージ名の書き方のルールがある

リンク集

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.