dockerode icon indicating copy to clipboard operation
dockerode copied to clipboard

Docker API update v1.47

Open lilacdev opened this issue 2 years ago • 2 comments

Hello there,

Just to let you know a feature was added to mount options :

Mounts: [
  {
    Type: 'volume',
    Source: 'dev_data',
    Target: '/my-data',
    VolumeOptions: {
      Subpath: 'subpath' <------------------------
    }
  },
],

With a // @ts-ignore, it works, so I guess you just need to update types somewhere.

See reference here : https://docs.docker.com/reference/api/engine/version/v1.47/#tag/Container/operation/ContainerCreate

And by the way, thanks for amazing work.

lilacdev avatar Oct 25 '24 11:10 lilacdev

This project doesn't produce types. I'll work on getting a pr into definitely typed though. In the future, if you're wanting to make changes to the types, this is the source: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dockerode

SelfhostedPro avatar Nov 05 '24 00:11 SelfhostedPro

I just did a pull request, thanks for redirecting me as well ! I guess I can close this now.

lilacdev avatar Nov 05 '24 08:11 lilacdev