Skip to content

Commit 4f5ca89

Browse files
committed
Implemented docker dir
1 parent 520fb76 commit 4f5ca89

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ Volumes listed in `iobBackup` are tagged for inclusion in ioBroker backup routin
180180
-->
181181

182182
## Changelog
183-
### 0.1.0 (2025-10-09)
183+
### **WORK IN PROGRESS**
184184
- (@GermanBluefox) Split the docker manager into pure docker commands and monitoring of own containers
185185

186186
### 0.0.3 (2025-09-25)

src/lib/DockerManager.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1830,9 +1830,11 @@ export default class DockerManager {
18301830
const container = await this.#dockerode.createContainer({
18311831
Image: 'alpine',
18321832
name: tempContainerName,
1833+
18331834
Cmd: ['sleep', '30'],
18341835
HostConfig: {
18351836
Binds: [`${volumeName}:/data`],
1837+
AutoRemove: true,
18361838
},
18371839
});
18381840
try {
@@ -1867,7 +1869,7 @@ export default class DockerManager {
18671869

18681870
// create a temporary container with volume mounted
18691871
const createResult = await this.#exec(
1870-
`create -v ${volumeName}:/data --name ${tempContainerName} alpine sleep 60`,
1872+
`create -rm -v ${volumeName}:/data --name ${tempContainerName} alpine sleep 60`,
18711873
);
18721874
if (createResult.stderr) {
18731875
return { stdout: '', stderr: `Cannot create temporary container: ${createResult.stderr}` };

0 commit comments

Comments
 (0)