Docker Container SSH Access

Docker Container SSH Access

Since Docker containers don’t have the embedded GUI for their management, the most common way to take the full control over such an instance is connecting to it under the SSH protocol and perform any desired operations inside using the corresponding terminal commands.

Note that with Apiqcloud the majority of the required configurations can be performed directly through the dashboard without the necessity to use SSH, thanks to the following tools:
  • Docker Container Configurations - allows customizing the main container settings (like variables, volumes, linking, run options, opened ports, etc)
  • Configuration Manager - provides the full root access to the container’s file system, allowing to operate with all of the comprised files

In addition, you can leverage the Apiqcloud-dedicated CLI client, which provides the advanced remote management for all types of environments and nodes and allows to automate your app’s lifecycle via scripts.

SSH connection to a container can be established in two ways:

  1. Through the ApiqcloudSSH Gateway as for any other environment. The flow will be the following: 
  • generate an SSH keypair
  • add your public SSH key to the dashboard
  • access your account via SSH protocol      open your terminal emulator

     2. Or, if you don’t want to use SSH keys, you need to attach the public IP address to the required node and perform the next steps:       

  • open your terminal emulator 
  • enter the ssh [username]@[hostname] string, where the username is your login, and hostname is the Public IP address (you receive these credentials via email every time a new Docker® container is created or added to the environment)
  • specify the requested password (can be found in the email also)

Once you’ve entered your Docker container, you can perform any required configurations, thanks to the full root permissions granted.

Note: If you’ve faced any problems during establishing the connection, check the firewall rules for your Docker container and ensure it has the OpenSSH server running.

Reset Password

In case you’ve forgotten your container’s credentials or lost/deleted the appropriate email, you can restore them at any time - simply choose the Reset password option within the expandable Additional list (the gear icon) for the necessary node (or set of them):

 

As a result, you’ll receive a new password via email and can use it for operating your Docker container(s).

 
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Docker Container Update

Docker Container Redeploy Once you have your Docker template deployed and properly...

Elastic Search Engine

Data Index inside the Cloud: How to Deploy Elasticsearch at Apiqcloud Elasticsearch is a...

Adding Template from Custom Docker Registry

Adding Template from Custom Docker Registry In addition to the numerous public templates...

Docker Containers Horizontal Scaling

  Docker standard is an open-source, container-based solution, designed to simplify the...

Adding Docker Container to Apiqcloud Environment

  Apiqcloud implementation of Docker® standard on top of Virtuozzo containers provides the...