本リポジトリは、「プログラマのためのDocker教科書 第2版」のサンプルアプリケーションです。
- 押さえておきたいシステムとインフラの基礎知識
- コンテナ技術とDockerの概要
- Dockerのインストールとチュートリアル
- Dockerコマンド
- Dockerfileを使ったコードによるサーバ構築
- Dockerイメージの公開
- 複数コンテナの運用管理
- マルチホスト環境でのDocker実行環境構築
- クラウドを使ったDocker実行環境構築
- クラウドを使ったDocker実行環境の運用管理
- 付録
License: Apache License 2.0
本リポジトリは、「プログラマのためのDocker教科書 第2版」のサンプルアプリケーションです。
@asashiho
阿佐様
お世話になっております。
【プログラマのためのDocker教科書 第2版】の読者です。
日頃、上記書籍を使ってDockerの勉強をさせていただいております。
(最近業務でもDockerを使用するようになってのですが、イメージやコンテナ周りの理解が追いついておらず、非常に助けられました。)
上記書籍の5.3でのDockerfileビルドに関して以下のエラーが発生しました。
ooshirotoshisukenoMacBook-Air:multi-stage oshiro-pooh$ docker build -t greet .
Sending build context to Docker daemon 3.584kB
Step 1/9 : FROM golang:1.8.4-jessie AS builder
1.8.4-jessie: Pulling from library/golang
85b1f47fba49: Pull complete
5409e9a7fa9e: Pull complete
661393707836: Pull complete
9d718ab8b1b0: Pull complete
cdfb169b668c: Pull complete
0f4bf831cc47: Pull complete
2e82858ddeb5: Pull complete
Digest: sha256:e8ff3ea3c2666f85c2f7576914a3c15b9f71f7ab92507882b71f1b5a2c49c203
Status: Downloaded newer image for golang:1.8.4-jessie
---> c43e4acbfaba
Step 2/9 : WORKDIR /go/src/github.com/asashiho/dockertext-greet
---> Running in ff0f53257bfe
Removing intermediate container ff0f53257bfe
---> fb76c5721518
Step 3/9 : RUN go get -d -v github.com/urfave/cli
---> Running in 683e874f9ef0
github.com/urfave/cli (download)
github.com/cpuguy83/go-md2man (download)
package github.com/cpuguy83/go-md2man/v2/md2man: cannot find package "github.com/cpuguy83/go-md2man/v2/md2man" in any of:
/usr/local/go/src/github.com/cpuguy83/go-md2man/v2/md2man (from $GOROOT)
/go/src/github.com/cpuguy83/go-md2man/v2/md2man (from $GOPATH)
The command '/bin/sh -c go get -d -v github.com/urfave/cli' returned a non-zero code: 1
おそらく、Goのバージョンと実行コマンドの兼ね合いの不備だと思うのですが、回避策をご教示頂く事は可能でしょうか??
ちなみに、サンプルコードは以下の最新のmaserブランチものもをクローン済みです。
https://github.com/asashiho/dockertext2/
お忙しい中恐縮ですが、何卒よろしくお願い致します。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.