Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM ubuntu
- CMD bash -c 'echo -n "Type your name: " && read name && echo -n "Your name is " && echo $name && sleep 4'
- # Test commands:
- # docker build -t attachtest .
- # docker run -d -it --name attachtest-container attachtest
- # docker attach attachtest-container
- # docker rm -f attachtest-container
- # # Output should be the name you typed
- # # Now remove the test container
- # docker rm -f attachtest-container
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement