Merge pull request #938 from chendave/doc

doc: make sure the intended message is redirected to file successfully
docker-19.03
Tõnis Tiigi 2019-04-15 10:13:18 -07:00 committed by GitHub
commit f5ad03858a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -119,8 +119,9 @@ This mount type allows the build container to access SSH keys via SSH agents, wi
FROM alpine
RUN apk add --no-cache openssh-client
RUN mkdir -p -m 0700 ~/.ssh && ssh-keyscan gitlab.com >> ~/.ssh/known_hosts
RUN --mount=type=ssh ssh git@gitlab.com | tee /hello
RUN --mount=type=ssh ssh -q -T git@gitlab.com 2>&1 | tee /hello
# "Welcome to GitLab, @GITLAB_USERNAME_ASSOCIATED_WITH_SSHKEY" should be printed here
# with the type of build progress is defined as `plain`.
```
```console