dsmt 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +1 -1
- package/dist/lib/docker/sdk.js +4 -1
- package/package.json +2 -2
package/dist/cli.js
CHANGED
package/dist/lib/docker/sdk.js
CHANGED
|
@@ -7,6 +7,10 @@ import { volumeCreate, volumeList } from "./volume.js";
|
|
|
7
7
|
*/
|
|
8
8
|
export async function run(options) {
|
|
9
9
|
const { name, rm, mounts, volumes, tty, image, cmdArgs } = options;
|
|
10
|
+
const localImagesList = await imageList();
|
|
11
|
+
if (!localImagesList.includes(image)) {
|
|
12
|
+
await imagePull(image);
|
|
13
|
+
}
|
|
10
14
|
let hostConfig = {
|
|
11
15
|
AutoRemove: rm,
|
|
12
16
|
Binds: volumes?.map((v) => `${v.Name}:${v.Mountpoint}`),
|
|
@@ -25,7 +29,6 @@ export async function run(options) {
|
|
|
25
29
|
Cmd: cmdArgs,
|
|
26
30
|
});
|
|
27
31
|
await containerStart(containerId);
|
|
28
|
-
await containerWait(containerId);
|
|
29
32
|
}
|
|
30
33
|
const docker = {
|
|
31
34
|
run,
|
package/package.json
CHANGED