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 CHANGED
@@ -6,7 +6,7 @@ const program = new Command();
6
6
  program
7
7
  .name("dsmt")
8
8
  .description("Docker Storage Migration Tool")
9
- .version("0.2.0");
9
+ .version("0.2.1");
10
10
  program
11
11
  .command("export")
12
12
  .argument("<src>", "volume name or bind mount path")
@@ -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
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "dsmt",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Docker Storage Migration Tool",
5
5
  "type": "module",
6
6
  "bin": {
7
- "dsmt": "./dist/cli.js"
7
+ "dsmt": "dist/cli.js"
8
8
  },
9
9
  "scripts": {
10
10
  "dev": "tsc -w",