Tor network problem

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

docker network create --subnet= tor
docker run --rm --net tor --ip 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.