Detaching from a docker container without killing it
Use keys Control-Q Control-P to detach from the container~docker-host> docker attachroot@3727bb82884: ^Q^P ~docker-host>
Copy a text file from host to container
cat my-test-file.txt | docker exec -i 3727bb82884 sh -c 'cat > /root/my-test-file.txt'
0 comments:
Post a Comment