Skip to content

Commit

Permalink
Docker 1.12 support
Browse files Browse the repository at this point in the history
  • Loading branch information
kcq committed Jul 30, 2016
1 parent 0934ed9 commit b000648
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ Creating small containers requires a lot of voodoo magic and it can be pretty pa

## RECENT UPDATES

Latest version: 1.15 (6/19/2016)
Latest version: 1.16 (7/30/2016)

* Docker 1.12 support
* User selected location to store DockerSlim state (global `--state-path` parameter).
* Auto-generated seccomp profiles for Docker 1.10.
* Python 3 support
Expand Down
6 changes: 1 addition & 5 deletions master/inspectors/container/container_inspector.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,7 @@ func (i *Inspector) RunContainer() error {
i.ContainerID = containerInfo.ID
log.Infoln("docker-slim: created container =>", i.ContainerID)

if err := i.ApiClient.StartContainer(i.ContainerID, &dockerapi.HostConfig{
PublishAllPorts: true,
CapAdd: []string{"SYS_ADMIN"},
Privileged: true,
}); err != nil {
if err := i.ApiClient.StartContainer(i.ContainerID, nil); err != nil {
return err
}

Expand Down

0 comments on commit b000648

Please sign in to comment.