SHARE
TWEET

Untitled

a guest Jun 16th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. docker exec <container-id> sh /test.sh
  2.      
  3. docker exec 7bd877d15c9b /bin/bash /test.sh
  4.      
  5. /test.sh
  6.      
  7. #!/bin/bash
  8. echo "Hi"
  9. echo
  10. echo "This works fine"
  11. sleep 5
  12. echo "5"
  13.      
  14. ArgonQQ@Terminal ~  docker exec 7bd877d15c9b /bin/bash /test.sh
  15. Hi
  16.  
  17. This works fine
  18. 5
  19. ArgonQQ@Terminal ~
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top