Open HenryLoveMiller opened 7 months ago
In step 14, add this to your file:
#!/bin/bash
qemu-system-x86_64 -machine q35 -m 1024 -smp cpus=2 -cpu qemu64 -drive if=pflash,format=raw,read-only=on,file=$PREFIX/share/qemu/edk2-x86_64-code.fd -netdev user,id=n1,dns=8.8.8.8,hostfwd=tcp::5244-:5244 -device virtio-net,netdev=n1 -nographic alpine.img
And while running your docker container, add this:
-p 5244:5244
Now, you can access.
How to add more ports?
try to use comma (,) example: -p 5244:5244,5234:5234
I successfully run Docker according to the excellent tutorial.
But I can not visit my web service runing as a container inside alpine, whose port is 5244.