When i run command
docker run -d \ -v /var/run/docker.sock:/tmp/docker.sock \ -v /etc/hosts:/tmp/hosts \ dvdarias/docker-hoster
got error
Traceback (most recent call last): File "hoster.py", line 135, in <module> main() File "hoster.py", line 38, in main update_hosts_file() File "hoster.py", line 107, in update_hosts_file while lines[-1].strip()=="": lines.pop() IndexError: list index out of range
and file /etc/hosts is empty.
My system is Ubuntu 20.
When i run command
docker run -d \ -v /var/run/docker.sock:/tmp/docker.sock \ -v /etc/hosts:/tmp/hosts \ dvdarias/docker-hostergot error
Traceback (most recent call last): File "hoster.py", line 135, in <module> main() File "hoster.py", line 38, in main update_hosts_file() File "hoster.py", line 107, in update_hosts_file while lines[-1].strip()=="": lines.pop() IndexError: list index out of rangeand file /etc/hosts is empty.
My system is Ubuntu 20.