Help with a docker command please

“once image is created(you will see error in log - do the following)-
go to the console from portainer for the image you created
make config.xml file under /config and paste this
“
I don’t understand how to make a config.xml, do I just type “config.xml” then paste the rest?

Thank you

Without more context, it's a little hard to know what you're asking.

But are you trying to create a file with the path /config/config.xml in your docker container?

If you're running on a Linux based system, you can do the following:

vi config.xml

Once in vi, press the "i" key and then press the shift and insert keys to paste in whatever you need to paste in.

press :wq when finished to save the file.

Thanks mark. I’d be using portainer on Linux

I am no expert in docker but here is my working setup using portainer
create new stack
pase this and deploy

version: '2'
services:
sstvproxy:
image: cloudb0x/sstv
restart: unless-stopped
ports:
- 1411:1411
environment:
- TZ=America/New_York
- PUID=0
- PGID=0
volumes:
- /srv/dev-disk-by-uuid-927781ba-4084/config/sstv:/config # change your volume (left side)

once image is created(you will see error in log - do the following)-
go to the console from portainer for the image you created
make config.xml file under /config and paste this

public_url: http://localhost:1411 # change localhost to your server ip
smoothstreams:
username: username@domain.com
password: password
site: viewstvn. # select your provider
server: deu. # change this to your nearest sstv server

I also do not understand what this means. Thx for your time

On your linux device, /srv is where your hard drive device(s) are listed.

ls -l /srv will show you what you have.

If you only have 1, replace "dev-disk-by-uuid-927781ba-4084" with whatever value you get from the above command.
If you have more than one drive, you'll need to figure out which one you want to use and go with that.

After that, cd /srv whatever value you got above.

You'll need to create the directories
mkdir config
cd config
mkdir sstv

Create your config file in whichever directory the instructions indicate.

1 Like

This part of the docker config is basically mapping a real path on your host to a path in the docker container.

Everything before the “:” is the path on your host OS, presumably a Linux distro you have installed docker and portainer on.

You probably need to create a directory, the post by @bradford.clarke right above this one lists the steps to do that.

Once the docker container has started, you can pick back up with the step you described in the OP, ie use portainer to get to the console for your container. Make sure you’re in the /config folder (type “cd /config” to change to that directory if not).

Then follow the instructions in @bradford.clarke’s first response in this thread to create the config.xml file from the container command line using the text editor named vi.

1 Like