Article Directory
Then (a): Run hello-world
(2020-1-8 8:01:23)
Starting "default"...
(default) Check network to re-create if needed...
(default) Windows might ask for the permission to configure a dhcp server. Sometimes, such confirmation window is minimized in the taskbar.
(default) Waiting for an IP...
Right-click the mouse react?
Machine "default" was started.
Waiting for SSH to be available...
Detecting the provisioner...
Started machines may have new IP addresses. You may need to re-run the `docker-machine env` command.
Regenerate TLS machine certs? Warning: this is irreversible. (y/n): Regenerating TLS certificates
Waiting for SSH to be available...
Detecting the provisioner...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
## .
## ## ## ==
## ## ## ## ## ===
/"""""""""""""""""\___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
\______ o __/
\ \ __/
\____\_______/
docker is configured to use the default machine with IP 192.168.99.100
For help getting started, check out the docs at https://docs.docker.com
Start interactive shell
url: official entry teaching
71027@DESKTOP-gwdsss MINGW64 /d/Program Files/Docker Toolbox
$ cd E:\GitProjects\Docker\doodle\cheers2019\ >
bash: cd: E:GitProjectsDockerdoodlecheers2019: No such file or directory
71027@DESKTOP-gwdsss MINGW64 /d/Program Files/Docker Toolbox
$ cd E:\GitProjects\Docker\doodle\cheers2019
bash: cd: E:GitProjectsDockerdoodlecheers2019: No such file or directory
71027@DESKTOP-gwdsss MINGW64 /d/Program Files/Docker Toolbox
$ cd 'E:\GitProjects\Docker\doodle\cheers2019'
71027@DESKTOP-gwdsss MINGW64 /e/GitProjects/Docker/doodle/cheers2019 (master)
$ docker build -t gwdsss/cheers2019 .
Sending build context to Docker daemon 13.31kB
Step 1/9 : FROM golang:1.11-alpine AS builder
1.11-alpine: Pulling from library/golang
9d48c3bd43c5: Pull complete
7f94eaf8af20: Pull complete 9fe9984849c1: Pull complete ec448270508e: Downloading [====> ] 9.051MB/110.3MB 65ba82af53f7: Download complete
wait.
Right-click on the refresh can see the progress.
Network may explode. Wait.
16.61MB / 110.3MB
(2020-1-8 8:28:27)
so long to download a 16M. Want to change the configuration.
Or wait.
url: Suman Answers
Then (2020-1-8 8:44:08)
view. This file.
Look readme.md
docker run -it --rm docker/doodle:cheers
Different versions? Contrast official website. Is the next step.
OpenDockerfile
FROM golang:1.11-alpine AS builder
RUN apk add --no-cache git
RUN go get github.com/pdevine/go-asciisprite
WORKDIR /project
COPY cheers.go .
RUN CGO_ENABLED=0 GOOS=linux go build -a -ldflags ‘-extldflags “-static”’ -o cheers cheers.go
FROM scratch
COPY --from=builder /project/cheers /cheers
ENTRYPOINT ["/cheers"]
The other two file
plug-in installation prompts
file a
FROM --platform=$BUILDPLATFORM golang:1.11-alpine AS builder
RUN apk add --no-cache git
RUN go get github.com/pdevine/go-asciisprite
WORKDIR /project
COPY cheers.go .
ARG TARGETOS
ARG TARGETARCH
ENV GOOS= TARGETARCH
RUN CGO_ENABLED=0 go build -a -ldflags ‘-extldflags “-static”’ -o cheers cheers.go
FROM scratch AS release-linux
COPY --from=builder /project/cheers /cheers
ENTRYPOINT ["/cheers"]
FROM mcr.microsoft.com/windows/nanoserver:1809 AS release-windows
COPY --from=builder /project/cheers /cheers.exe
ENTRYPOINT ["\cheers.exe"]
FROM release- $ TARGETOS
installation
. Lengthy codes
publish a continued write wait (2020-1-8 8:59:00).
Washing line and get the code 9: 30-10: 30