gatorback
(Raymond C)
November 24, 2023, 5:24am
1
Context
PC: AMD CPU outfitted with 1TB SSD
HA installed via docker
user@ubuntuhost:~$ sudo docker ps -a
returns
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d09afb363fa9 ghcr.io/home-assistant/home-assistant:stable “/init” 8 months ago Up 2 weeks homeassistant
507be5c73cd9 hello-world “/hello” 8 months ago Exited (0) 8 months ago zealous_mclaren
The article How to get services and its status inside the docker containers? - Stack Overflow indicates:
If your container is called app
go to the folder on your machine where you have installed docker and run ./launcher enter app
This will put you inside the container and you can run service apache2 status
for example to see the status of Apache2 running on your container.
QUESTION
VDRainer
(🍻)
November 24, 2023, 6:33am
2
Never heard something about a launcher
.
Use docker exec -it homeassistant bash
to open a console inside the HA container.
1 Like
Why would you focus on the response with 0 upvotes when there are other responses on that page with more upvotes?
Tinkerer
(aka DubhAd on GitHub)
November 24, 2023, 10:09am
4
What’s your actual question? Is it about the fact that your HA container isn’t running?
If so then the answer would appear to be that you never started it.
Are you using compose files (the right way) or docker run
(not the right way )?
gatorback
(Raymond C)
November 24, 2023, 6:25pm
5
@Tinkerer . My question was ill-posed. I hope the edited version is clearer.
The HA-Container is running fine
I’d like to be able to work “inside the container” from the command line.
Apparently this an be done with docker exec -it homeassistant bash
Tinkerer
(aka DubhAd on GitHub)
November 24, 2023, 7:46pm
6
Yes it can, but you shouldn’t ever need to do that.
JoFie
(Irregular)
November 25, 2023, 12:08pm
7
Depends.
In the official HACS setup (under: Container , Container ) it is one of the actual install steps to download the HACS script from within the homeassistant
container.
VDRainer
(🍻)
November 25, 2023, 5:24pm
8
Not true!
The forum is full of command_line sensors and shell_commands that don’t work, because they are not tested inside the HA container.
You can just copy HACS into the custom_components folder rather than shelling in.
1 Like