# Temporal docker container readiness check

**URL:** https://community.temporal.io/t/temporal-docker-container-readiness-check/2031
**Category:** Community Support
**Tags:** docker
**Created:** [April 29, 2021, 1:24am UTC](https://community.temporal.io/t/temporal-docker-container-readiness-check/2031 "2021-04-29T01:24:49Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Maxim\_Chuvilyaev](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim_chuvilyaev/32/924_2.png) [@Maxim\_Chuvilyaev](https://community.temporal.io/u/Maxim_Chuvilyaev)
#### Post date: [April 29, 2021, 1:24am UTC](https://community.temporal.io/t/temporal-docker-container-readiness-check/2031/1 "2021-04-29T01:24:49Z")

</div>

Hi, I have some sort of timing-related issue when I try to use Temporal docker container (1.8.2)  
I use it with the testcontainers Java library and need some sort of criteria of container’s readiness.  
I can see in the logs that it emits “Default namespace registration complete.” message and that’s all.  
If I use that as criteria for readiness, I get very strange behaviour:

1. a separate grpc request for “default” namespace runs successfully and returns its description.
2. however, if I try to start a workflow - I get an error (“default namespace not found”). If I wait 10-20 secs before starting - all works OK. But I don’t see any logs in the container output during this time…

Is there any other logic that I can use to make sure that container has started and ready to execute workflows?  
Thanks!

---

<div class="post-metadata">

### Author: ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)
#### Post date: [April 29, 2021, 3:19am UTC](https://community.temporal.io/t/temporal-docker-container-readiness-check/2031/2 "2021-04-29T03:19:48Z")

</div>

At this point calling `DescribeNamespace` until it is available is the best option.

When these issues ([#453](https://github.com/temporalio/temporal/issues/453) and [#1336](https://github.com/temporalio/temporal/issues/1336)) are resolved the experience is going to improve.

---

<div class="post-metadata">

### Author: ![Maxim\_Chuvilyaev](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim_chuvilyaev/32/924_2.png) [@Maxim\_Chuvilyaev](https://community.temporal.io/u/Maxim_Chuvilyaev)
#### Post date: [April 29, 2021, 3:40am UTC](https://community.temporal.io/t/temporal-docker-container-readiness-check/2031/3 "2021-04-29T03:40:13Z")

</div>

Well, the problem is that DescribeNamespace runs OK and returns all relevant data. (That’s what I meant in my point 1)

---

<div class="post-metadata">

### Author: ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)
#### Post date: [April 29, 2021, 3:53am UTC](https://community.temporal.io/t/temporal-docker-container-readiness-check/2031/4 "2021-04-29T03:53:26Z")

</div>

Then sleep is the best way to deal with it ☹

---

<div class="post-metadata">

### Author: ![Maxim\_Chuvilyaev](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim_chuvilyaev/32/924_2.png) [@Maxim\_Chuvilyaev](https://community.temporal.io/u/Maxim_Chuvilyaev)
#### Post date: [April 29, 2021, 5:44am UTC](https://community.temporal.io/t/temporal-docker-container-readiness-check/2031/5 "2021-04-29T05:44:04Z")

</div>

OK, thanks a lot! At least I know that there’s nothing else I can do except a delay 😉

I tried to use testcontainers with Temporal because the behaviour of TestWorkflowEnvironment (in java sdk) sometimes differs from the “real” temporal… (see the GH issue I opened today: [Duplicate concurrent workflow - hangs on completion · Issue #456 · temporalio/sdk-java · GitHub](https://github.com/temporalio/sdk-java/issues/456))
