Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/Why might Canton started from a Dockerfile automatically end after it has finished starting?Forum ↗

Why might Canton started from a Dockerfile automatically end after it has finished starting?

App Development3 posts224 views1 likesLast activity Aug 2022
LA
lashenhurstOP
Aug 2022

Hi all,

I’m trying to start up a little local Canton network through a dockerfile, with a very basic config and simple bootstrap file to upload the dar and create a few parties. I’ve now got Canton to start, but I get “Welcome to Canton!” immediately followed by “Bye!” and the container closes down!

Any advice would be greatly appreciated!

Thank you!

CO
cocreature
Aug 2022

That sounds like you’re starting Canton in console mode and you’re not giving it a terminal (by passing -it to docker) so the console sees that the input is closed and dies.

For deployments like docker containers you usually want to pass daemon to Canton instead of starting it in console model.

LA
lashenhurst
Aug 2022

Yeah, you’re on the right lines. I was running Canton with the “–no-tty” argument during debugging without fully realising the implications.

I removed “–no-tty” and ran the image by “docker run -t example-canton-app:Dockerfile” and now it’s fine.

Thanks!

← Back to Discussions