Docker container evcc starts briefly and then immediately stops again

Hello,

I have a PV system and am planning to get an electric car.
To charge the car, I want to purchase a wallbox and use surplus charging.
For monitoring and control, I want to use evcc.
On my QNAS (Model: TS-431X3, firmware version: QTS 5.2.10.3577), I used Container Station to create a docker image following the instructions at Docker | evcc - smart charging to set up a Docker container.
The container starts briefly and then quickly shuts down again.

I experimented with the network settings and chose both host and bridge modes.
But even these containers keep starting up and shutting down.
I experimented with the network settings and chose both host and bridge modes.
But even these containers keep starting up and shutting down.

I also found something like logs for the evcc container in the QNAP Container Station.
Maybe someone can see from this log file why the container starts and then immediately stops:

Inspect - evcc-1
{
AppArmorProfile:""
Args:[
"evcc"
]
Config:{
AttachStderr:false
AttachStdin:false
AttachStdout:false
Cmd:[
"evcc"
]
Domainname:""
Entrypoint:[
"/app/entrypoint.sh"
]
Env:[
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
"TZ=Europe/Berlin"
]
ExposedPorts:{
28376/udp:{}
4712/tcp:{}
5353/udp:{}
7070/tcp:{}
7090/udp:{}
8887/tcp:{}
8899/udp:{}
9522/udp:{}
}
Healthcheck:{
Interval:30000000000
Retries:3
StartPeriod:30000000000
Test:[
"CMD-SHELL"
"wget -qO /dev/null http://localhost:7070 || exit 1"
]
Timeout:5000000000
}
Hostname:"6d627d5de4cc"
Image:"evcc/evcc:latest"
Labels:{}
OpenStdin:true
StdinOnce:false
Tty:true
User:""
WorkingDir:"/app"
}
Created:"2026-09-10T19:27:30.69454284Z"
Driver:"overlay2"
GraphDriver:{
Data:{}
Name:"overlay2"
}
HostConfig:{
AutoRemove:false
Binds:[]
BlkioWeight:0
Cgroup:""
CgroupParent:""
CgroupnsMode:"host"
ConsoleSize:[
0
0
]
ContainerIDFile:""
CpuCount:0
CpuPercent:0
CpuPeriod:0
CpuQuota:0
CpuRealtimePeriod:0
CpuRealtimeRuntime:0
CpuShares:0
CpusetCpus:""
CpusetMems:""
DeviceCgroupRules:[]
Dns:[]
IOMaximumBandwidth:0
IOMaximumIOps:0
Init:false
IpcMode:"private"
Isolation:""
LogConfig:{}
MaskedPaths:[]
Memory:0
MemoryReservation:0
MemorySwap:0
NanoCpus:0
NetworkMode:"host"
OomKillDisable:false
OomScoreAdj:0
PidMode:""
PortBindings:{}
Privileged:false
PublishAllPorts:false
ReadonlyPaths:[]
ReadonlyRootfs:false
RestartPolicy:{}
Runtime:"runc"
ShmSize:67108864
UTSMode:""
Ulimits:[]
UsernsMode:""
VolumeDriver:""
VolumesFrom:[]
}
HostnamePath:"/share/MD0_DATA/Container/container-station-data/lib/docker/containers/1be58e942a1879703d127923e0a8d8c8b3fa484d7dc975aad717066d593fe136/hostname"
HostsPath:"/share/MD0_DATA/Container/container-station-data/lib/docker/containers/1be58e942a1879703d127923e0a8d8c8b3fa484d7dc975aad717066d593fe136/hosts"
Id:"1be58e942a1879703d127923e0a8d8c8b3fa484d7dc975aad717066d593fe136"
Image:"sha256:1e41ab233f17c938ff41a6f929b79f6e1709478d594c4e8012157411444cf95e"
LogPath:"/share/MD0_DATA/Container/container-station-data/lib/docker/containers/1be58e942a1879703d127923e0a8d8c8b3fa484d7dc975aad717066d593fe136/1be58e942a1879703d127923e0a8d8c8b3fa484d7dc975aad717066d593fe136-json.log"
MountLabel:""
Mounts:[]
Name:"/evcc-1"
NetworkSettings:{
Bridge:""
EndpointID:""
Gateway:""
GlobalIPv6Address:""
GlobalIPv6PrefixLen:0
HairpinMode:false
IPAddress:""
IPPrefixLen:0
IPv6Gateway:""
LinkLocalIPv6Address:""
LinkLocalIPv6PrefixLen:0
MacAddress:""
Networks:{
host:{
EndpointID:""
Gateway:""
GlobalIPv6Address:""
GlobalIPv6PrefixLen:0
IPAddress:""
IPPrefixLen:0
IPv6Gateway:""
MacAddress:""
NetworkID:"c96a1ace1715d81586998b544d3b5594758248ba9fd015a7154aa8a5d7899d46"
}
}
Ports:{}
SandboxID:"0726be1aee696aef47809f4469e20c72f59e736e9d63651dbda2d80f154d8174"
SandboxKey:"/var/run/docker/netns/default"
}
Path:"/app/entrypoint.sh"
Platform:"linux"
ProcessLabel:""
ResolvConfPath:"/share/MD0_DATA/Container/container-station-data/lib/docker/containers/1be58e942a1879703d127923e0a8d8c8b3fa484d7dc975aad717066d593fe136/resolv.conf"
RestartCount:9
State:{}
}

Please try it via Compose.

What exactly do you mean by that?

Should I log into the QNAP via SSH and use Compose to initiate the whole process of creating the container? The Container Station GUI should handle that much better and more safely, shouldn’t it?

Or is that what you meant?

Check here under “Create Application”

Everything works via GUI.

Yes, I used the GUI to create the container.

It does start up, but then it shuts down right away. Of course, I want the container to keep running, otherwise it’s useless for me.

What do I need to do to keep the container running?

Create the container via Compose to have more control (as mentioned)