Guest User

Untitled

a guest
Aug 21st, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #### Start Ubuntu Xenial container
  2.  
  3. `$ docker container run -d -it --name my_ubuntu ubuntu:xenial`
  4.  
  5. #### Inside Ubuntu container, update and install CURL
  6. **Note:** make sure the DNS works fine in the container.
  7.  
  8. <pre>
  9. root@9b7xxx:/# apt update
  10. root@9b7xxx:/# apt install curl
  11. </pre>
  12.  
  13. You can use 'Ctrl+pq' to exit the container without stopping it cause the CMD is running '/bin/bash' by default.
  14.  
  15. #### Reattach to the container
  16.  
  17. `$ docker container attach my_ubuntu`
Add Comment
Please, Sign In to add comment