I hope you are well . I’m new to docker , i need your help plz.
I built a docker “hello” by using this command “docker build -t hello .”
but i’m blocked in this step : docker run --rm -t -i --name dnsmasq_test dnsmasq bash. The message error is :
docker:command not found , i don’t know whereis the problem.
Also i want to know the container id how can i extract it.
The error message is likely to mean that the image you are running does not contain the “sudo” command. Your options are to run an image that does contain the command. Another option is to build an image from your existing base image (dnsmasq), add/install the sudo command and any dependencies required, tag and push the image to a registry, and run the updated image. There may be other options available to you.