Skip to content

docker inspect ${HOSTNAME} failed with exit status: 1 #1309

Closed Answered by FallingSnow
FallingSnow asked this question in Q&A
Discussion options

You must be logged in to vote

Edit: Don't use --network host.

This was caused by the hostname not being the same as the docker container's name. This should be the default so I'm not sure why it isn't happening in my case. I solved it by adding --hostname to my docker run command.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by FallingSnow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant