I am a newbie and have HASSIO running on VirtualBox on a windows machine which is running fine.
I know it has portainer and home assistant is running in a docker within the HASSIO system. I need to install an app from github that needs to be in a docker. unfortunately docker-compose doesnt work in hassio it says command not found which is strange as i can see dockers for ha and other add ons.
Please let me know if i can create a new docker via ssh on HASSIO and how i can do that.
Itâs not possible to do what you want in HassOS.
As far as Portainer is concerned it isnât installed by default in HassOS so you must have installed it as an add-on. Correct?
If the app isnât available as add-on then Iâve heard there is a way for Portainer itself to create and deploy a new container but Iâve never done it myself and have no idea how itâs done.
I would look down that path and if you canât do it that way then your only other recourse will be to install the âHome Assistant via generic Linux installâ. Itâs not gone yet.
you can add any docker via portainer in at least 2 ways. manually add each parameter via the gui or even easier using docker-compose.
select stack > new stack > copy the docker-compose elements > deploy !
Thanks Juan, thanks for the advice. I tried to use âAdd Stackâ option. It has build method âRepositoryâ which i added my repository âhttps://github.com/ned-kelly/docker-voltronic-homeassistantâ. This gives me error "yaml: unmarshall errors: line 1: cannot unmarshall !!str â3â into config.RawServiceâ
the git has version: '3 in the 1st line on the docker-compose.yaml. Either it cant read the file or i am doing something wrong.
I tried to create a docker by creating image. it has option to specify docker hub âbushrangers/ha-voltronic-mqttâ and then i create a container for this image.
And i am running it. It seems to be running. How do i change the config? I am supposed to change the json and conf files, where do you think they will be created?
i checked folder where the entrypoint.sh is stored i.e. /opt/inverter-mqtt and the files are not there. not sure what i am missing.
I get the same error as i mentioned when i do it your way, i removed version and it gave me error on container_name. I have figured out what the problem is. it only supports compose version 2 as shown in image below.
I need to know what i need to update, the portainer, docker, etc. I get a get-apt update get-apt upgrade in hassos, it didnât seen to make any difference.let me know what you think
Ignore above, it worked. all i did was change the first line from
version: â3â to version â2â.
The docker is runnnig, i can see the container as well, its saying âunhealthyâ. I need to update the json and conf files and that should fix it, where will i find them in the file system?
in the location where you mapped the volume to the host.
in this example
volumes:
- /mnt/cache/appdata/pihole:/etc/pihole
the files would be in the folder pihole in the host
My container logs show âcat: /etc/inverter/mqtt.json: No such file or directory
Unable to connect (Lookup error.).â When i check there is no folder â/etc/inverterâ
inverter.conf
mqtt.json
the docker cant find the mqtt one. The samples are in the repository.
you need to edit the files and copy them to your /.config folder which should be in your host user directory.
thanks @juan11perez, i was looking for the files in the filesystem and couldnât find them. In my case there is no volume. I managed to edit the files by using the console in the container via portainer UI.
thatâs ok but youâll loose those changes when the container is updated or you do a host restart.
the volumes are mapped to the host, so that configuration information will persist regardeless.
As I already said your files are in the - ./config directory you created.
I donât use hassos so I canât tell you where it is.
SSH into hassos and look for it. Iâve read suggestions of /mnt/data
I temporarily set up a second pi3 just to talk to the inverter. I tried to enable port 22222 ssh, but that didnât work. HENCE for a permanent solution, I am adding an SSD to my pi4 setting up docker and installing a docker for HASSIO and a second one for the inverter. Ideally one day we should have the inverter tool as an Add-On. but I donât have time to do that.