add wishlist add wishlist show wishlist add compare add compare show compare preloader icon-theme-126 icon-theme-161 icon-theme-138 icon-theme-027 electro-thumb electro-return-icon electro-brands-icon electro-payment
  • +1 (857) 226-1305
  • +86 18825289328

How to Transfer Files Between Docker and the Host System

1. Introduction

When performing secondary development on Jetson series products, developers sometimes need to place custom programming files into the ROS system within the Jetson system for testing. However, Jetson product systems generally feature both ROS1 and ROS2 operating systems. To prevent interference between the two systems, one of the ROS systems is encapsulated using Docker. Under these circumstances, the ROS system cannot be directly accessed from the desktop of the Jetson system, and file transfer between Docker and the host system must be performed via a shared folder.

2. Problem Description

When performing secondary development on Jetson series products, developers sometimes need to place custom programming files into the ROS system within the Jetson system for testing, and some ROS systems are encapsulated inside Docker, making them inaccessible directly from the desktop of the Jetson system.

3. Solutions

  1. Move the programming files from the computer system to the Jetson system of the device.

  2. If the file to be moved is a single file rather than a folder, the file can be directly dragged using the mouse into the Jetson system connected via NoMachine.

  3. If the programming file to be moved is a folder, a shared disk must be created between NoMachine and the host computer, and the document How to Transfer Files Between NoMachine and the Host can be referenced for details.

  4. Move the files from the Jetson system into Docker. The folder named MY_data is used as the target for demonstration below.

    Cut and paste MY_data into the Home/docker/tmp directory, which is the shared folder between the Jetson host system and Docker.

    In the red terminal , files in the ROS system inside Docker can be accessed. Enter the commands in the terminal to access the /home/ubuntu/share/tmp folder, the MY_data folder can be seen, which indicates that the files have been successfully moved into Docker. After this, commands can be used to freely move the files within Docker.

mv <filename_to_move> <absolute_path_of_target_folder>
Light
Dark