Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to run rsync from a local devcontainer host terminal #135

Open
igorauad opened this issue Apr 18, 2023 · 0 comments
Open

Ability to run rsync from a local devcontainer host terminal #135

igorauad opened this issue Apr 18, 2023 · 0 comments

Comments

@igorauad
Copy link

Hi,

When developing inside a devcontainer, is there a way to run rsync from a terminal within the local container host, as opposed to a terminal on the devcontainer?

On Mac, Docker containers do not have access to the local network (i.e., option --net host does not work as in Linux), so it becomes hard to use rsync to other hosts in the local network. Imagine the following scenario:

  • Host A (dev host): a devcontainer on a MacOS host.
  • Host B (test host): another host in the local network.

I would like to rsync from Host A to Host B using vscode-rsync.

My current workaround is to open a local terminal on vscode (command Create New Integrated Terminal (Local)), which opens a terminal directly on the devcontainer host (the shell opens with the message below). Then, from this terminal, I call a script to rsync. However, it would be a lot nicer to just run the Sync-Rsync command.

*  This shell is running on your local machine, NOT on the connected remote machine 

Any ideas?

@igorauad igorauad changed the title Ability to run rsync from the local terminal Ability to run rsync from the local devcontainer host terminal Apr 18, 2023
@igorauad igorauad changed the title Ability to run rsync from the local devcontainer host terminal Ability to run rsync from a local devcontainer host terminal Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant