Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to develop Erlang Nitrogen apps in Docker

I'm trying to work out an efficient work flow for developing Erlang Nitrogen apps in Docker.

Sans Docker, I would keep two terminals open:

  • a bash terminal terminal for making source changes
  • a Nitrogen console (erl) for compiling Erlang modules and testing expressions

But I can't find a way to do that in Docker. Attempts to open a second terminal open a new container.

Can some kind soul point the way?

Many thanks,

LRP

like image 258
Lloyd R. Prentice Avatar asked Jan 29 '26 03:01

Lloyd R. Prentice


1 Answers

You can use docker-enter to enter a running container.

For example, you could do

-- Terminal 1 $ docker run -it foo bash container1$ hackhackhack

-- Terminal 2 $ docker ps ... abcd... foo $ docker-enter abcd container1$ hackhackhack

like image 53
seanmcl Avatar answered Jan 31 '26 15:01

seanmcl



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!