Replaced github.com/docker/libcontainer with github.com/opencontainers/runc/libcontaier. Also I moved AppArmor profile generation to docker. Main idea of this update is to fix mounting cgroups inside containers. After updating docker on CI we can even remove dind. Signed-off-by: Alexander Morozov <lk4d4@docker.com> Upstream-commit: c86189d554ba14aa04b6314970d3699e5ddbf4de Component: engine
15 lines
420 B
Go
15 lines
420 B
Go
package daemon
|
|
|
|
import (
|
|
"github.com/docker/docker/api/types"
|
|
"github.com/opencontainers/runc/libcontainer"
|
|
)
|
|
|
|
// convertStatsToAPITypes converts the libcontainer.Stats to the api specific
|
|
// structs. This is done to preserve API compatibility and versioning.
|
|
func convertStatsToAPITypes(ls *libcontainer.Stats) *types.Stats {
|
|
// TODO Windows. Refactor accordingly to fill in stats.
|
|
s := &types.Stats{}
|
|
return s
|
|
}
|