Curl your way out when 404 page not found in your #Sitecore Docker setup

Dear fellow Sitecore developers.

Now when Docker(And Kubernetes) is official in Sitecore 10, it’s so much more fun to develop Sitecore web applications. 🙂

As Cato the Elder(the Roman senator) ended every one of his speeches with this snappy catchphrase:

Ceterum autem censeo Carthaginem esse delendam
Furthermore, I consider that Carthage must be destroyed

I want you to see the power and the happiness of using Docker

We are not savages living in the stone age. We adapt and evolve to the DOCKER era.

While developing Sitecore in Docker you will sometimes get an error, that just gives you a 404 page not found. You know that your CM(or CD) is up, and the container(docker) looks good. Even the log says nothing, you just can’t get it to work.
So how can you fix this or find what’s the issue is?

Guess what, it’s quite easy. Open up a fellow container, say the id container, do an “Attach Shell”.
Enter the curl command and try to open up the cm(if that’s the one that does not work)

curl http://cm

And bam, there is the error. Here it’s a faulty config file. Fix it and your Sitecore instance will work again 🙂

That’s all for now folks 🙂

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.