1. Followed Setting up Ubuntu Core on a KVM
    • It shows you how to start the vm and forward ports back to your host machine.
  2. Followed Snappy Tour
    • It shows you how to install Docker on Ubuntu Core
  3. Installed the latest nginx image
  4. Looked at Managing Containers and interactively got nginx running in my container

Now the container is running nginx on a random port.

Back in Ubuntu Core, I tried to install wget or curl to return a page from nginx in my container but there isn't one either one listed in snappy search; how else can I test this?


nc (netcat) will do the trick.

nc 32771
GET / HTTP/1.1
User-Agent: netcat

32771 is the random port in my case, a detailed explanation is available here: download a URL by netcat

enter image description here

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.