From 957174eaee118ae690d07e720d575e87cdbcea08 Mon Sep 17 00:00:00 2001 From: Deon George Date: Tue, 29 Jan 2019 14:41:37 +1100 Subject: [PATCH] Added more instructions for mystic usage --- source/_posts/mysticbbs.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/source/_posts/mysticbbs.md b/source/_posts/mysticbbs.md index 5e659d7..845b047 100644 --- a/source/_posts/mysticbbs.md +++ b/source/_posts/mysticbbs.md @@ -28,6 +28,22 @@ To make sure your data is kept between re-creations of your docker container, yo 2. Start your subsequent containers with `--volumes_from=[ORIG CONTAINER]`. In this case, you might want to rename your old container if you want to use the same container name. -You could even use this image to have our containers in a docker swarm (as I do). +You need to map some IP ports into the container when it starts, so use `-p HOST_PORT:CONTAINER_PORT`, where **HOST_PORT** is the IP port on the host that you want the services to listen on (it can be the same as the container's ports). + +The services you'll probably use are: +
ServicePortDescriptionSuggested Mapping
ssh22SSH port for incoming SSH connections22 (or any port number)
telnet23Telnet port for incoming telnet connections23 (or any port number)
binkp24554BINKP port for incoming BBS Mail/File Transfers24554 (or any port number)
+ +For example, if you wanted to map telnet to port 10023, ssh to port 10022, and leave binkp as it, and use */srv/docker/mystic* on the host as your persistant storage inside the container, you would use: + +``` +docker run -it -v /srv/docker/mystic:/mystic data -p 10022:22 -p 10023:23 -p 24554:24554 registry.leenooks.net/leenooks/mysticbbs:1.12a39-armv7l +``` +when it starts, it will output the container ID. + +Once your container is running, you can run the mystic utils by running: `docker exec -it [COMMAND]` where **COMMAND** is the command you wanted to run, eg `./mystic -cfg`, or `./fidopoll ...`. + +You can also attach to the console to see what mystic is showing `docker attach `, and to detach, you'll need to press **CTRL-PQ** (which is ctrl p, ctrl q). (**NOTE**: You might need to press a key, to refresh the screen - using your arrows is safe.) + +You could even use this image to have your containers in a docker swarm (as I do). If you need any help, [login](/2018/08/31/chinwag/) to my BBS and send me a message, or if you use another BBS, or a Sysop of a BBS and connected to one of the networks I'm connected to, you can send me a Netmail. See the list of [networks](/networks) that I'm already connected to.