docker cp“ requires exactly 2 arguments

Suppose the container name is myubuntu, and the file path to be copied from the host is /root/1.py, now copy the 1.py file to the /home path of the container, but an
error "docker cp" requires exactly 2 arguments. , it means that the format of the path is wrong, maybe there is an extra space.
insert image description here
At this time, you only need to remove the extra space.

Guess you like

Origin blog.csdn.net/m0_56192771/article/details/123765717