Coder Social home page Coder Social logo

docker_learn's Introduction

米国AI開発者がゼロから教えるDocker講座(https://www.udemy.com/course/aidocker/)の学習記録 $docker login $docker pull $docker run -it bash imageからコンテナを作成してそのコンテナに入る $exit $docker ps -a $docker images $docker restart コンテナをupにする $docker exec -it bash コンテナを起動 $docker commit containerを指定してimageを作成 $docker tag sourceのimagesをtargetに新しい名前を入れる $docker push dockerHubにプッシュする(image名とdockerHubのrepository名を一致させる) $docker rmi imageを削除

$docker run run=crate+ start $docker create
$docker start -a 設定されたコマンドを出力 $docker run -it ubuntu bash -itとは、、、 -i:インプット可能  -t:表示がきれいになる コンテナの削除 $docker stop $docker rm コンテナの全削除 $docker system prune


Dockerfileの作成 FROM 土台となるosを指定 RUN RUNのあとに書かれたコマンドを(Linuxで実行)、RUNごとにlayerが作成 CMD 実行 $docker build <Dokerfileのあるディレクトリ> $docker run -it <nameを付ける> bash

Dockerimageのlayer数を最小限にする。 →Layerを作成するのはRUn,COPY,ADDの3つ →コマンドを&&でつなげる

docker_learn's People

Contributors

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