fix: Remove support for broken storageOpt option

Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
This commit is contained in:
Cameron Diver 2018-10-16 08:22:19 +01:00
parent 4e9eae1b77
commit 16e7522a1f
No known key found for this signature in database
GPG Key ID: 69264F9C923F55C1
2 changed files with 0 additions and 8 deletions

View File

@ -60,7 +60,6 @@ export class Service {
// This field is passed at container creation, but is not
// reported on a container inspect, so we cannot use it
// to compare containers
'storageOpt',
'cpus',
].concat(Service.configArrayFields);
@ -321,7 +320,6 @@ export class Service {
securityOpt: [ ],
stopGracePeriod,
stopSignal: '',
storageOpt: { },
sysctls: { },
tmpfs,
usernsMode: '',
@ -464,9 +462,6 @@ export class Service {
pid: container.HostConfig.PidMode || '',
pidsLimit: container.HostConfig.PidsLimit || 0,
securityOpt: container.HostConfig.SecurityOpt || [ ],
// StorageOpt is present on container creation, but not
// when you inspect the container
storageOpt: { },
usernsMode: container.HostConfig.UsernsMode || '',
ipc: container.HostConfig.IpcMode || '',
macAddress: (container.Config as any).MacAddress || '',
@ -552,7 +547,6 @@ export class Service {
ReadonlyRootfs: this.config.readOnly,
ShmSize: this.config.shmSize,
Tmpfs: tmpFs,
StorageOpt: this.config.storageOpt,
UsernsMode: this.config.usernsMode,
NanoCpus: this.config.cpus,
IpcMode: this.config.ipc,

View File

@ -61,7 +61,6 @@ export interface ServiceComposeConfig {
securityOpt?: string[];
stopGracePeriod?: string;
stopSignal?: string;
storageOpt?: { [opt: string]: string };
sysctls?: { [name: string]: string };
ulimits?: {
[ulimitName: string]: number | { soft: number, hard: number };
@ -126,7 +125,6 @@ export interface ServiceConfig {
securityOpt: string[];
stopGracePeriod: number;
stopSignal: string;
storageOpt: { [opt: string]: string };
sysctls: { [name: string]: string };
ulimits: {
[ulimitName: string]: { soft: number, hard: number };