Need to send in commands to my running docker instance

Hi,

I want to make the below automatic:

C:\Users\eraonel> docker run --network="host"  -it --name sysrepo -p 830:830 --rm netopeer2-mod-image:latest
WARNING: Published ports are discarded when using host network mode
root@docker-desktop:/opt/dev# **/usr/local/bin/netopeer2-server -d -v2 3**
root@docker-desktop:/opt/dev# **netopeer2-cli**
get_netconf_dir: Configuration directory "/root/.netopeer2-cli" did not exist, created.
load_config: No saved history.
load_config: No saved configuration.
> **connect -p 830 --login netconf**
The authenticity of the host 'localhost' cannot be established.
ssh-rsa key fingerprint is ed:3a:f0:93:7c:8a:4c:e0:16:e6:e2:96:99:38:23:ad:2b:0e:44:32.
Are you sure you want to continue connecting (yes/no)? yes
Interactive SSH Authentication
Type your password:
Password:
netconf@localhost password:
> **edit-config --target running --config**

I tired in a shell script (git bash) to see if I can avoid doing these manual steps over and over.

winpty docker run --network=“host” -it --name sysrepo -p 830:830 -p 4334:4334 -p 4335:4335 --rm netopeer2-mod-image:latest
docker exec sysrepo bash -c “/usr/local/bin/netopeer2-server -d -v2 3; netopeer2-cli”

but I only get this:

WARNING: Published ports are discarded when using host network mode
root@linuxkit-00155d38011b:/opt/dev#

Is there a way to make this automatic? All hints welcome!

//mike