SHARE
TWEET

Untitled

a guest Jul 15th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # docker build
  2. ```
  3. docker build -t image_name .
  4. ```
  5.  
  6. # docker run and join a network
  7. ```
  8. docker run -d -p 8080:8080 --network network_name image_name
  9. ```
  10.  
  11. # docker batch remove container
  12. ```
  13. docker rm $(docker ps -a| grep alpine |awk '{print $1}')
  14.  
  15. ps: use your keyword replace alpine
  16. ```
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
 
Top