alexsteinerde / docker-client-swift Goto Github PK
View Code? Open in Web Editor NEWThis is a Docker Client written in Swift. It's using the NIO Framework to communicate with the Docker Engine via sockets.
License: MIT License
This is a Docker Client written in Swift. It's using the NIO Framework to communicate with the Docker Engine via sockets.
License: MIT License
Hi there,
When running the unit tests on Apple Silicon hardware, using Docker Desktop for Apple Silicon, ContainerTests.testStartingContainerAndRetrievingLogs
is failing.
Here's the output of swift test
:
.../docker-client-swift/Tests/DockerClientTests/ContainerTests.swift:49: error: -[DockerClientTests.ContainerTests testStartingContainerAndRetrievingLogs] : XCTAssertEqual failed: ("
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(arm64v8)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/get-started/
") is not equal to ("
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/get-started/
")
Test Case '-[DockerClientTests.ContainerTests testStartingContainerAndRetrievingLogs]' failed (1.087 seconds).
Note that step 2 in the text is:
- The Docker daemon pulled the "hello-world" image from the Docker Hub.
(arm64v8)
Instead of:
- The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
It would be nice if we are able to use this to create containers that forward container ports to the host machine (equivalent to the docker
-p
flag).
This is a great and promising library!
Looking at the code, it looks like currently, only local Docker daemons are supported via Unix socket connections.
Is there a plan to support connections to remote Docker daemons listening over HTTP (with certificate authentication)?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.