Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error mounting "/etc/hosts" to rootfs at "/tmp/hosts" #18

Open
jankamuda opened this issue Dec 19, 2023 · 0 comments
Open

error mounting "/etc/hosts" to rootfs at "/tmp/hosts" #18

jankamuda opened this issue Dec 19, 2023 · 0 comments

Comments

@jankamuda
Copy link

jankamuda commented Dec 19, 2023

Ubuntu 20.04.6 LTS
Docker version 24.0.7, build afdd53b

After executing

docker run -v /var/run/docker.sock:/tmp/docker.sock -v /etc/hosts:/tmp/hosts dvdarias/docker-hoster

I have the following error

docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/etc/hosts" to rootfs at "/tmp/hosts": mount /etc/hosts:/tmp/hosts (via /proc/self/fd/6), flags: 0x5000: no such file or directory: unknown.
ERRO[0007] error waiting for container:                 

( there is no additional info after container: )

My /ets/hosts

jkamuda@jkamuda-Latitude-9430:~/IdeaProjects/smart-match-service$ cat /etc/hosts
127.0.0.1	localhost
127.0.1.1	jkamuda-Latitude-9430

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant