Docker Community Forums

Share and learn in the Docker community.

Code exited(1) error


(Pana507) #1

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


(David Maze) #2

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.


(Pana507) #3

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?