Skip to content

Commit

Permalink
get container with volumes and volume plan
Browse files Browse the repository at this point in the history
  • Loading branch information
zc committed Jan 9, 2020
1 parent f918d65 commit 1938ab6
Show file tree
Hide file tree
Showing 4 changed files with 375 additions and 363 deletions.
4 changes: 2 additions & 2 deletions cluster/calcium/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,13 +274,13 @@ func (c *Calcium) doMakeContainerOptions(index int, cpumap types.CPUMap, volumeP
config.Image = opts.Image
config.Stdin = opts.OpenStdin
config.Hosts = opts.ExtraHosts
config.Volumes = make([]string, len(config.Volumes))
config.Volumes = make([]string, len(opts.Volumes))
config.Debug = opts.Debug
config.Network = opts.NetworkMode
config.Networks = opts.Networks

// volumes
for idx, volume := range config.Volumes {
for idx, volume := range opts.Volumes {
config.Volumes[idx] = volumePlan.GetVolumeString(volume)
}

Expand Down
Loading

0 comments on commit 1938ab6

Please sign in to comment.