Synchronize your local directory to a remote volume
3.7K
rsync container for remote development
Starting container
docker run --volume <DirectoryToSync> -e DATADIR=<DirectoryToSync> -e DAEMON=rsync tjamet/rsync
On your local host run
rsync -avz directory rsync://<containerIp>/data
Starting container
docker run --name rsync-container --volume <DirectoryToSync> -e DAEMON=rsync tjamet/rsync
cat <YourPublicKey> | docker exec -i rsync-container add-ssh-key
On your local host, run
rsync -avz -e 'ssh' . root@<containerIp>:<DirectoryToSync>
Starting container
docker run --name rsync-container --volume <DirectoryToSync> -e DAEMON=docker tjamet/rsync
On your local host, run
rsync -avz -e 'docker exec -i' . rsync-container:<DirectoryToSync>
Customization should be done by setting environment variables at docker run time
cat <YourPublicKey> | docker exec -i rsync-container add-ssh-key --reset
cat <YourPublicKey> | docker exec -i rsync-container add-ssh-key
Note: using the docker remote shell is not fully supported with docker clients < 1.10
Content type
Image
Digest
Size
67.4 MB
Last updated
almost 6 years ago
docker pull tjamet/rsync