Docker's Remote API can be secured via TLS and client certificate verification.
First of all you need a few certificates and keys:
- CA certificate
- Server certificate
- Server key
- Client certificate
- Client key
| # Copy to Rails console and call with a class parameter. Assumes | |
| # /var/tmp exists and is writable | |
| require 'csv' | |
| def export_objects(klass) | |
| objects = klass.last(10000) | |
| CSV.open("/var/tmp/#{klass}.csv", 'w') do |row| | |
| row << klass.attribute_names | |
| objects.each do |o| | |
| row << o.attributes.values |
| <template> | |
| <v-dialog v-model="dialog" :max-width="options.width" :style="{ zIndex: options.zIndex }" @keydown.esc="cancel"> | |
| <v-card> | |
| <v-toolbar dark :color="options.color" dense flat> | |
| <v-toolbar-title class="white--text">{{ title }}</v-toolbar-title> | |
| </v-toolbar> | |
| <v-card-text v-show="!!message" class="pa-4">{{ message }}</v-card-text> | |
| <v-card-actions class="pt-0"> | |
| <v-spacer></v-spacer> | |
| <v-btn color="primary darken-1" text @click.native="agree">Yes</v-btn> |
| using System; | |
| using System.Security.Cryptography; | |
| using System.Text; | |
| namespace Utility | |
| { | |
| /// <summary> | |
| /// Helper methods for working with <see cref="Guid"/>. | |
| /// </summary> | |
| public static class GuidUtility |
This is how to connect to another host with your docker client, without modifying your local Docker installation or when you don't have a local Docker installation.
First be sure to enable the Docker Remote API on the remote host.
This can easily be done with a container.
For HTTP connection use jarkt/docker-remote-api.
| using System; | |
| using System.Linq; | |
| using System.Threading.Tasks; | |
| using Akka.Actor; | |
| using Akka.Routing; | |
| using Microsoft.ServiceBus.Messaging; | |
| namespace ConsoleApplication13 | |
| { | |
| public class MyBusinessActor : ReceiveActor |
| namespace ConsoleApplication2 | |
| { | |
| using System; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| using Autofac; | |
| using Fooidity; | |
| using Topshelf; | |
| <!DOCTYPE html> | |
| <html ng-app="myapp"> | |
| <head> | |
| <title>AngularJs Directive for disabling Context Menu</title> | |
| <style type="text/css"> | |
| *.unselectable { | |
| -moz-user-select: -moz-none; | |
| -khtml-user-select: none; | |
| -webkit-user-select: none; | |
| /* |
| using System; | |
| using ServiceStack; | |
| using ServiceStack.Web; | |
| using ServiceStack.Text; | |
| namespace v4 | |
| { | |
| class MainClass | |
| { | |
| public static void Main() |
| <div id="loadingWidget" loading-widget> | |
| <div class="loadingContent"> | |
| <p> | |
| Loading....Loading....Loading....Loading....Loading....Loading....Loading....Loading....Loading....Loading....Loading....Loading....Loading....Loading....Loading....Loading....Loading....Loading.... | |
| </p> | |
| </div> | |
| </div> |