京东-优惠雷达
箱包品类日
嗨翻暑期档
随心所动,自在安睡
自营热卖

005-Docker容器和服务器之间文件的传输

雨后、云初霁 1年前   阅读数 95 0
[root@jenkins data]# docker cp use_product centos2:/
[root@jenkins data]# sh /data/docker/docker_in.sh centos2
[root@f23c5bdd0542 /]# ls
bin  data  dev	etc  home  lib	lib64  lost+found  media  mnt  opt  proc  root	run  sbin  srv	sys  tmp  use_product  usr  var
[root@f23c5bdd0542 /]# touch 2019
[root@f23c5bdd0542 /]# exit
logout
[root@jenkins data]# docker cp centos2:/2019 ./
[root@jenkins data]# stat 2019
  File: ‘2019’
  Size: 0         	Blocks: 0          IO Block: 4096   regular empty file
Device: fd00h/64768d	Inode: 50668130    Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2019-12-10 01:06:53.000000000 +0800
Modify: 2019-12-10 01:06:53.000000000 +0800
Change: 2019-12-10 01:07:23.463962895 +0800
 Birth: -

注意:本文归作者所有,未经作者允许,不得转载

全部评论: 0

    我有话说: