Use `docker cp` to copy files to docker containers.

`scp` won't work anymore on google workstations.
This commit is contained in:
Kun Zhang 2016-01-22 15:32:04 -08:00
parent 4aee912bce
commit 2bd0887db3
1 changed files with 9 additions and 7 deletions

View File

@ -126,13 +126,15 @@ system. Make sure to have at least version 1.7.1 or later.
made (e.g., copied configuration files) will be lost. If you want to keep the made (e.g., copied configuration files) will be lost. If you want to keep the
container, remove `--rm=true` from the command line. container, remove `--rm=true` from the command line.
4. Next, you'll need to copy your OSSRH credentials and GnuPG keys to your docker container. 4. Next, you'll need to copy your OSSRH credentials and GnuPG keys to your docker container.
Run `ifconfig` in the host, find the IP address of the `docker0` interface. In Docker:
Then in Docker: ```
# mkdir /root/.gradle
```bash ```
$ scp -r <your-host-user>@<docker0-IP>:./.gnupg ~/ Find the container ID in your bash prompt, which is shown as `[root@<container-ID> ...]`.
$ mkdir ~/.gradle In host:
$ scp -r <your-host-user>@<docker0-IP>:./.gradle/gradle.properties ~/.gradle ```
$ docker cp ~/.gnupg <container-ID>:/root/
$ docker cp ~/.gradle/gradle.properties <container-ID>:/root/.gradle/
``` ```
You'll also need to update `signing.secretKeyRingFile` in You'll also need to update `signing.secretKeyRingFile` in