Closed codetojoy closed 4 years ago
I tried this, but using a "console strategy" leads to I/O problems (?)...
These are solved in run.sh
so presumably the instructions above could use that as well.
Whoops, sorry about that.
docker run -it waro waro/main.py config.interactive.json
You need to tell docker you want interactive terminal, so you need the i
(allow stdin maybe) and t
(allocate TTY I think?) flags. You'll only need the -it
part to have interaction with terminal.
from Evan
Creating a
Dockerfile
much easier. Let the machine do the work.Then do the following:
Basically, running
docker run waro
will run a container and immediately execute "python" (as per ENTRYPOINT in the Dockerfile)If need be, you can mount extra config files into the container to run other war-o strategies.