Closed sjuratov closed 2 years ago
Do you mean a docker container, or a VS Code dev container?
If you want to use a VS Code dev container, then I've created a repo to do this. It's a template repo, so you can create a new repo from it, and open it in either codespaces or VS Code remote containers. CounterFit is pre-installed, along with Python, so you can just develop your virtual app inside it.
If you want to use a Docker container - then you can use this one:
docker pull jimbobbennett/counterfit:latest
When you run this, you need to map port 5000 to a port on your localhost.
More details and the docker file is here: https://github.com/CounterFit-IoT/counterfit-docker-container
I am trying to use CounterFit in Dev Container as part of IoT-For-Beginners course. So idea is to run all course using virtual hardware but not directly on local PC but rather in docker container.
Here is a "Hello World" code I am trying to run:
Here is output of the run:
It's worth while saying that if I try to run simple Web server inside of the same container, using same 5000 port, it runs just fine.
Any idea what might be a problem?