Class DataVolume


  • @Immutable
    public class DataVolume
    extends Object
    Represents a Docker container data volume.
    • Constructor Detail

      • DataVolume

        public DataVolume​(@Nullable
                          @Nullable String hostDirectory,
                          @NotNull
                          @NotNull String containerDataVolume)
    • Method Detail

      • getContainerDirectory

        @NotNull
        public @NotNull String getContainerDirectory()
        Returns:
        the path to the data volume inside the container.
      • getHostDirectory

        @Nullable
        public @Nullable String getHostDirectory()
        Returns:
        the path to the mapped host directory. May be null if the container data volume is not mapped to a host directory.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object