ACY.Docker 1.0.0

dotnet add package ACY.Docker --version 1.0.0
                    
NuGet\Install-Package ACY.Docker -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ACY.Docker" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ACY.Docker" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="ACY.Docker" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ACY.Docker --version 1.0.0
                    
#r "nuget: ACY.Docker, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ACY.Docker@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ACY.Docker&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=ACY.Docker&version=1.0.0
                    
Install as a Cake Tool

ACY.Docker

ACY.Docker, .NET 10 uygulamalarınızdan Docker komutlarını kolayca yönetmenizi ve Docker Engine ile etkileşime girmenizi sağlayan kapsamlı bir NuGet paketidir. Process tabanlı çalışarak standart Docker CLI araçlarını sarmalar ve C# ortamında nesne yönelimli, asenkron bir API sunar.

Özellikler

  • Container Yönetimi: Container listeleme, başlatma, durdurma ve silme işlemleri.
  • Asenkron API: Tamamen async/await mimarisine uygun yüksek performanslı işlemler.
  • Kolay Kullanım: Docker komutlarını basit metod çağrılarına dönüştürür.
  • Tip Güvenliği: JSON tabanlı formatlamalar aracılığıyla Docker çıktılarını C# modellerine dönüştürür.

Kurulum

Paketi projenize eklemek için NuGet Paket Yöneticisi Konsolu'nu kullanabilirsiniz:

dotnet add package ACY.Docker

(Not: Paket şu an yerel geliştirme aşamasındadır, kendi NuGet sunucunuza veya yerel kaynağa publish edebilirsiniz.)

Başlangıç ve Örnek Kullanım

DockerClient sınıfını kullanarak hemen işlemlere başlayabilirsiniz.

using System;
using System.Threading.Tasks;
using ACY.Docker.Client;

namespace ACY.Docker.Examples
{
    class Program
    {
        static async Task Main(string[] args)
        {
            var docker = new DockerClient();

            // 1. Yeni bir Container başlat (Nginx örneği)
            Console.WriteLine("Nginx container başlatılıyor...");
            var containerId = await docker.RunContainerAsync("nginx", "-p 8080:80");
            Console.WriteLine($"Başlatıldı! ID: {containerId}");

            // 2. Çalışan Container'ları listele
            Console.WriteLine("\nÇalışan Container'lar:");
            var containers = await docker.GetContainersAsync();
            foreach (var container in containers)
            {
                Console.WriteLine($"- {container.Names} ({container.Image}) - {container.Status}");
            }

            // 3. Container'ı durdur
            Console.WriteLine($"\nContainer durduruluyor: {containerId}");
            await docker.StopContainerAsync(containerId.Trim());
            Console.WriteLine("Durduruldu.");

            // 4. Container'ı sil
            Console.WriteLine($"\nContainer siliniyor: {containerId}");
            await docker.RemoveContainerAsync(containerId.Trim());
            Console.WriteLine("Silindi.");
        }
    }
}

Sistem Gereksinimleri

  • Projenin çalıştığı makinede Docker Engine'in kurulu olması ve sistem PATH değişkenine eklenmiş olması gerekmektedir (komut satırından docker komutu erişilebilir olmalıdır).
  • .NET 10 veya daha yeni bir sürüm.

Katkıda Bulunma

Hata bildirimleri ve çekme istekleri (pull requests) için lütfen projenin GitHub deposunu ziyaret edin.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 102 4/28/2026