You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's currently not possible to use the specs library to manipulate a Linux container configuration on a different platform, because some of the data types are defined in config_linux.go and runtime_config_linux.go. As a result, the package doesn't even compile on non-Linux platforms:
# github.com/opencontainers/specs
./config.go:26: undefined: User
Varying the data types based on the build target platform doesn't seem like the right approach. It should be possible for a non-architecture-specific tool or client to parse or generate configurations for containers that will eventually run on Linux.
The current approach is also problematic for projects which vendor github.com/opencontainers/specs but still need to support other platforms.
The text was updated successfully, but these errors were encountered:
Thanks for the issue. This has been an issue and discussed. I need to dust
off my PR for this.
On Fri, Feb 19, 2016 at 2:04 PM Aaron Lehmann [email protected]
wrote:
It's currently not possible to use the specs library to manipulate a Linux
container configuration on a different platform, because some of the data
types are defined in config_linux.go and runtime_config_linux.go. As a
result, the package doesn't even compile on non-Linux platforms:
github.com/opencontainers/specs
./config.go:26: undefined: User
Varying the data types based on the build target platform doesn't seem
like the right approach. It should be possible for a
non-architecture-specific tool or client to parse or generate
configurations for containers that will eventually run on Linux.
The current approach is also problematic for projects which vendor
github.com/opencontainers/specs but still need to support other platforms.
—
Reply to this email directly or view it on GitHub #324.
It's currently not possible to use the specs library to manipulate a Linux container configuration on a different platform, because some of the data types are defined in
config_linux.go
andruntime_config_linux.go
. As a result, the package doesn't even compile on non-Linux platforms:Varying the data types based on the build target platform doesn't seem like the right approach. It should be possible for a non-architecture-specific tool or client to parse or generate configurations for containers that will eventually run on Linux.
The current approach is also problematic for projects which vendor
github.com/opencontainers/specs
but still need to support other platforms.The text was updated successfully, but these errors were encountered: