It is often helpful to access Docker Container via SSH or SFTP. This provides a quick way to upload/download to the container or to access the command line from an external application.
Even though the default container has port 22 assigned to SSH, it often would not work as this port is often used by other software. It is possible to assign a customized port during container creation, and we recommend the port assigned be above 10000 to avoid conflicts.
Under the Images tab, choose the image you wish to create the container from and select Run.
Open up Optional Settings and enter the port number that you wish to use under Host ports.
Now you will see the new container that you just created. Please press the “play” button to start the container.
Now you can access the container by using the following credentials:
User Name: root
Password : root
Host Name : localhost
Port: 10022
Once connected you have access to the full container directory.
Comments
0 comments
Please sign in to leave a comment.