Skip to content

Instantly share code, notes, and snippets.

@viniciusjssouza
Created December 27, 2021 20:55
Show Gist options
  • Select an option

  • Save viniciusjssouza/113338aec420008c0ef170b7a590b6d6 to your computer and use it in GitHub Desktop.

Select an option

Save viniciusjssouza/113338aec420008c0ef170b7a590b6d6 to your computer and use it in GitHub Desktop.
Redirect docker exec output to the original container stdout
docker exec -it <container id> sh -c "ls -alh > /proc/1/fd/1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment