UnMango.Docker.DotNet.FSharp
0.0.3-alpha.0.20
See the version list below for details.
dotnet add package UnMango.Docker.DotNet.FSharp --version 0.0.3-alpha.0.20
NuGet\Install-Package UnMango.Docker.DotNet.FSharp -Version 0.0.3-alpha.0.20
<PackageReference Include="UnMango.Docker.DotNet.FSharp" Version="0.0.3-alpha.0.20" />
paket add UnMango.Docker.DotNet.FSharp --version 0.0.3-alpha.0.20
#r "nuget: UnMango.Docker.DotNet.FSharp, 0.0.3-alpha.0.20"
// Install UnMango.Docker.DotNet.FSharp as a Cake Addin #addin nuget:?package=UnMango.Docker.DotNet.FSharp&version=0.0.3-alpha.0.20&prerelease // Install UnMango.Docker.DotNet.FSharp as a Cake Tool #tool nuget:?package=UnMango.Docker.DotNet.FSharp&version=0.0.3-alpha.0.20&prerelease
Docker.DotNet.FSharp
Idiomatic F# support for Docker.DotNet.
Install
- NuGet:
dotnet add package UnMango.Docker.DotNet.FSharp
- GitHub Packages:
dotnet add package UnMango.Docker.DotNet.FSharp -s github
Usage
This project is still a work in progress and nothing is guaranteed to work!
At the moment, the library supports thin bindings for IImageOperations
and IContainerOperations
.
let docker: IDockerClient // Create a client
let auth: AuthConfig // Auth stuff if required
let progress: IProgress<JSONMessage> // Callbacks
let config = ImageCreateParameters(Image = "ubuntu")
do! docker.Images |> Image.create config auth progress
let docker: IDockerClient // Create a client
let config = ContainerCreateParameters(Image = "ubuntu:latest")
let! container = docker.Containers |> Container.create config
You can define a very minimal computation expression to create an image.
let docker: IDockerClient // Create a client
image { create { fromImage "ubuntu" } }
|> Image.runAll docker.Images
Q/A
Idiomatic? This looks nothing like the F# I write!
If something looks off please open an issue! I've only recently been diving further into the F# ecosystem.
Deprecated Operations
When I started this project there were a few deprecated operations and I chose not to implement them. Future deprecations will be tagged and removed along with upstream.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Docker.DotNet (>= 3.125.15)
- FSharp.Core (>= 8.0.400-beta.24229.4)
- UnMango.Docker.FSharp (>= 0.0.3)
-
net8.0
- Docker.DotNet (>= 3.125.15)
- FSharp.Core (>= 8.0.400-beta.24229.4)
- UnMango.Docker.FSharp (>= 0.0.3)
-
net9.0
- Docker.DotNet (>= 3.125.15)
- FSharp.Core (>= 8.0.400-beta.24229.4)
- UnMango.Docker.FSharp (>= 0.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.