Home > other >  Mount the host directory to the container, container no permission to access
Mount the host directory to the container, container no permission to access

Time:09-27


Under the centos7.1
Startup command: docker run - v/root/data/mysql//root/data/- h="centos - SSH" - the name centos - SSH - d - 50001: p. 22 centos6 - SSH:/usr/sbin/SSHD - 1.00 d
SSH connection container
[root @ centos - SSH data] # ls/root/data/
Ls: always open a directory/root/data/: Permission denied


CodePudding user response:

Have permission to access without outside

CodePudding user response:


The ls/root/data/mysql/:

  • Related