RONIN BLOG
  • HOME
  • COLLECTIONS
  • DOCS
  • SUPPORT
  • SLACK
  • RONIN LINK
Sign in Subscribe
docker

Create and Connect to a Docker Machine with RONIN

Watch this video to see how easy it is to create and connect to a Docker machine.

  • Don Hancock

Don Hancock

16 Nov 2019 • 1 min read
Create and Connect to a Docker Machine with RONIN

Watch this video to see how easy it is to create and connect to a Docker machine. In this example, we launch a PG Admin container and connect to the interface using the RONIN LINK desktop application.

To check you are in the correct docker group, enter the following into the machines terminal.

groups

You should see the group name docker. If not follow the below steps:

sudo usermod -aG docker ubuntu

Now close your terminal window and re-open/connect again. Check by running the groups command again.

groups

Now we can run the docker commands without the need to use sudo.

docker run -v ~/Documents/pgadminls:/tmp -d -p 5050:5050 --name pgadmin thajeztah/pgadmin4:latest

If for some reason you cannot install the RONIN LINK application, you can connect to the docker machine from your desktop terminal using the following command:

ssh -i ".ssh/your-key.pem" -L 5050:localhost:5050 ubuntu@webserver.ronin.cloud

See here for more info.

Using AWS ECR?

Your machine will need access to the ECR service. This can be done in a lot of different ways pending your requirements. The example below, we have added a policy to the IAM role on the machine.

To give your machine access to ECR, run the following command.

aws ecr get-login --no-include-email --region ap-southeast-2

This will print out a login command. Copy and paste yours into the terminal to login.

docker login -u AWS -p eyJwYXlsb2FkIjoiMlNpN2VxZjhLYjZubWFKaUROajlPL3J0cE9ScXVyZSs5cWpxUzlnN1dpQlhpMGZwUXBmV1NlRUNmL1IvOGdmenA2TXlOVDkwZk82aUhQa0ZiMVEvNGUwUHVhNk1LQlozTFBRZUtjTUtjeEtFa0o3NTdzVDViRXk2SE9kRDJrTndCdUN0STJjcXhkVk9qMGNEWGlySVVEbFhiT0Z2bVpjUk5oZlhtTjdyNlVkdnRHcEFqM0l4TGtNUjRLQWwwTlUySXFBNDJUUFoydUFhUzVRdG9XYjl1T0dCSW5tOUxRN1prK0lzVlQ3akZDQ0x4UEVENFNweDU0dkhhNVVqWmVIOW80QTNoTzVncWqdmlTMGJBZXUvdUprQ1VRK2JteUJEVQZFlNZ2poVXBTOExoTzBQc0Q4UTBvSlZMeEhubGNrUzVGZWlaV1NmcGZvbThsNVgxZldFTUFBM3hiSEY4RGl0cmIzZlJOOFR5K0hGU0s5MWFwZzBSbWZvdE5mY3RNd0NhUVliWFN2RjkvQU5mVmQxemxoY0FFRU8zaTdqRW9tSEVBT2R2ZkY2Y3F5NUpZSm8vWEdXQTRlliZGYrb09wdnJTams5bTNLRGlYeFh3Z2gwdTRCS1orZWxub2NKcFRHaTFMMFdabHd4NXJJVW80UzhyNWZnbEJrZnRxN1VoaXV3dmtsdXBMcFlnMjBDYTRmc2VwTlJJYWRlK2FaV2ZVRDNXbHQwMDVmNWt2QXRJYk9xZ3c5dTlWeHVUd2lwMWcvcGZtbFE9IiwiZGF0YWtleSI6IkFRRUJBSGhMeWp6N1BKRVBtWWJxSDZBNmYvd1dOenl6NUJLYTM3Qm5CUHNBeXVGMUtRQUFBSDR3ZkFZSktvWklodmNOQVFjR29HOHdiUUlCQURCb0Jna3Foa2lHOXcwQkJ3RXdIZ1lKWUlaSUFXVURCQUV1TUJFRURPSk5iYlRhdmk1cnJJMXZmUUlCRUlBN1pKLzdQNXZGTno3OWwxVTUwbCtrRmQ4eGVCTTZYeUU5cWFrQndybWgwdE5rb2Y1VmdQVUVsSkozNGdEdGpsRVdaQlExaWJpdVNuM0FSTmM9IiwidmVyc2lvbiI6IjIiLCJ0eXBlIjoiREFUQV9LRVkiLCJleHBpcmF0aW9uIjoxNTc0OTM4MTU1fQ== https://99999999999.dkr.ecr.ap-southeast-2.amazonaws.com

To list out the repositories run this command adding your AWS region.

aws ecr describe-repositories --region ap-southeast-2

To pull the docker container down to the machine use the "repositoryUri" for your container.

docker pull 9999999999.dkr.ecr.ap-southeast-2.amazonaws.com/my-container

To run the container

docker run -v ~/Documents/pgadminls:/tmp -d -p 5050:5050 --name pgadmin  9999999999.dkr.ecr.ap-southeast-2.amazonaws.com/my-container

Sign up for more like this.

Enter your email
Subscribe
How to deploy a .NET app on a RONIN Windows Server with HTTPS

How to deploy a .NET app on a RONIN Windows Server with HTTPS

How to Deploy an ASP.NET Core App with HTTPS on Windows Server 2022 (Directly on Server) Deploying web applications to a server can seem daunting, but it doesn't have to be. In this guide, we'll walk through the process of deploying a simple "Hello,
28 Mar 2025 3 min read
Understanding RONIN Tags in AWS: A Comprehensive Guide

Understanding RONIN Tags in AWS: A Comprehensive Guide

Managing cloud resources efficiently requires a robust tagging strategy. RONIN, a platform designed to simplify cloud computing for research, leverages AWS tagging extensively to provide structure, automation, and cost management capabilities. This post dives deep into how RONIN tags work, exploring the different types of tags used for EC2 machines,
19 Mar 2025 7 min read
Deploying Kubernetes in single-node mode on a RONIN machine

Deploying Kubernetes in single-node mode on a RONIN machine

Do you have a Kubernetes application that you would like to test or develop in the cloud, but don't want to get into the nitty gritty of having to set up and configure a whole cluster? This blog post will show you how to set up Kubernetes on a RONIN machine in just minutes with MicroK8s.
13 Mar 2025 4 min read
RONIN BLOG © 2025
Powered by Ghost