Tor network problem

I made a Dockerfile using the Alpine image, in which Tor is installed and I set the SocksPort to 0.0.0.0:9050 in the torrc settings.
I used the following command to create the network:

docker network create --subnet=192.168.1.0/24 tor
docker run --rm --net tor --ip 192.168.1.10 tor-image

There are two problems:

  • It can only be used in the host system and does not work in other interfaces (phone, laptop, etc.).
  • When I turn off the container and run the tor using virtualbox, the proxy does not work on the interfaces and I have to reboot the system to make it work again.