Advertisement
Guest User

Untitled

a guest
Aug 21st, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. FROM ubuntu
  2.  
  3. CMD bash -c 'echo -n "Type your name: " && read name && echo -n "Your name is " && echo $name && sleep 4'
  4.  
  5. # Test commands:
  6. # docker build -t attachtest .
  7. # docker run -d -it --name attachtest-container attachtest
  8. # docker attach attachtest-container
  9. # docker rm -f attachtest-container
  10. # # Output should be the name you typed
  11. # # Now remove the test container
  12. # docker rm -f attachtest-container
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement