Code exited(1) error

I have a problem every time I run on my raspberry pi the next command
docker run --net = host -d -t myimage
When executing it ends abruptly and when using the command
docker ps -a
The code appears
Exited (1)
Can someone help me to understand what is going on
regards

Means exactly what it says: the main process in the container exited with an error code of 1.

docker logs or running the container in the foreground (without -d) might tell you more.

I made a raspberry pi virtual machine and if the command works
docker run --net = host -d -t myimage
I ran the command that you recommended to me in the physical raspberry pi and it did not work.
What command do you recommend?