free unused dashticz ports?

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
skom
Posts: 18
Joined: Sunday 15 March 2020 9:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Poland
Contact:

free unused dashticz ports?

Post by skom »

First I installed dashticz stable version - it was installed on port 8082, then beta version - port 8083, after upgrading to the next beta version dashticz stopped working, so I installed again - port 8084 ... Now I only use the last version. How can I free port 8083 on which nothing is running anymore?
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: free unused dashticz ports?

Post by Lokonli »

Probably there is still a Dashticz docker instance running on that port.

To see all docker containers:

Code: Select all

sudo docker ps
This will give output similar as:

Code: Select all

CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                  NAMES
500c42ae47eb        dtv3-8083           "docker-php-entrypoi…"   3 weeks ago         Up 2 weeks          0.0.0.0:8083->80/tcp   dtv3-8083
af0cd4278a60        dtv3-8082           "docker-php-entrypoi…"   3 weeks ago         Up 2 weeks          0.0.0.0:8082->80/tcp   dtv3-8082
In this example you see there are two Dashticz containers running, on port 8082 and port 8083.

To stop the container with name dtv3-8083, which is running on port 8083:

Code: Select all

sudo docker stop -t 5 dtv3-8083
The -t 5 parameter will give the container 5 seconds to gracefully shut down.

After this you have an unused, stopped image dtv3-8083.

To get an overview of all images:

Code: Select all

sudo docker images
This will show something like:

Code: Select all

REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
<none>              <none>              a5d13a69533b        3 weeks ago         414MB
dtv3-8082           latest              5c0cc9bf78e7        3 weeks ago         414MB
dtv3-8083           latest              5c0cc9bf78e7        3 weeks ago         414MB
dtv3-8084           latest              5c0cc9bf78e7        3 weeks ago         414MB
php                 apache              5e1d7ed3b92a        5 weeks ago         414MB
hello-world         latest              fce289e99eb9        16 months ago       1.84kB
To remove all unused containers and images:

Code: Select all

sudo docker system prune
You will see a prompt, to which you can answer Y:

Code: Select all

WARNING! This will remove:
  - all stopped containers
  - all networks not used by at least one container
  - all dangling images
  - all dangling build cache

Are you sure you want to continue? [y/N] Y
Deleted Containers:
8140945ab5e770297a9b89751d3d8c303ca1ad2702dbaf1b6b68e6b1c6266aca
394f7f28dc9a26336a17534f539061a49caf624b090f0174620412472146e932
c4f8f460f86ee27a82090c15c070a66bf8a2763f430c8d534301c54ba585e62c
4401d69b78159b14e0f618758d2a547da34e2d9709ab661be51cedfc66774537

Deleted Images:
deleted: sha256:a5d13a69533bc8695fbd6feb0d094462d2b5a6d3d89256cd77c6f4b71c82271d
deleted: sha256:4db803ea9cd4b5e91e9ea3fa0746707aa3bbe6138f02083aa49aec2e6e59b6bb
deleted: sha256:36335a64948142f427dd6b94808682d7e49e4e252fdcd73dfa4f347f78513412

You can check the results with 'sudo docker ps' and 'sudo docker images'
skom
Posts: 18
Joined: Sunday 15 March 2020 9:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Poland
Contact:

Re: free unused dashticz ports?

Post by skom »

Thank you :).
I release 8083 port, but "sudo docker system prune" did not removed anything :(
I still have don't used:
REPOSITORY TAG IMAGE ID CREATED SIZE
dtv3-8082 latest 270f15e46bc2 2 months ago 300MB
dtv3-8083 latest 270f15e46bc2 2 months ago 300MB
dtv3-8084 latest 270f15e46bc2 2 months ago 300MB
dtv3-8085 latest 270f15e46bc2 2 months ago 300MB
php apache 6c2719be579b 2 months ago 300MB
hello-world latest 851163c78e4a 4 months ago 4.85kB
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: free unused dashticz ports?

Post by Lokonli »

You cannot remove the php apache image: It's used by Dashticz.

Other images, like hello-world, you remove with:

Code: Select all

sudo docker image rm 85116
The number consists of the 5 first characters from the Image ID.
skom
Posts: 18
Joined: Sunday 15 March 2020 9:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Poland
Contact:

Re: free unused dashticz ports?

Post by skom »

Thank you again :)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest