首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >有没有办法移动已安装的ICP的ICP私有镜像仓库的位置?

有没有办法移动已安装的ICP的ICP私有镜像仓库的位置?
EN

Stack Overflow用户
提问于 2019-03-30 07:52:51
回答 2查看 99关注 0票数 0

我在ICP私有映像注册表所在的驱动器上磁盘空间不足。我知道在安装ICP之前,可以使用绑定挂载为"/var/lib/registry“指定一个位置。在已有的ICP集群上,是否有安全移动ICP私有镜像仓库位置的步骤?

EN

回答 2

Stack Overflow用户

发布于 2019-04-10 04:16:55

如何将/current/目录移动到另一个分区/磁盘

添加额外的磁盘、对其进行分区、创建文件系统并准备将/current/directory移到其中之后,请执行以下步骤:

假设/dev/xvdc11是使用ext4文件系统创建的分区

代码语言:javascript
运行
复制
# create a temp mount point and mount your new partition
mkdir /mnt/dirName
mount /dev/xvdc11 /mnt/dirName

# confirm that it is mounted.
df -h

# copy current directory content to the temp mount point
rsync -aqxP /current/directory/* /mnt/dirName

# use bind mount to set the new location
mount --rbind /mnt/dirName /dirName

# unmount and delete the temp mount point
umount /mnt/dirName
rm -rf /mnt/dirName

# persist this change across system reboots
echo "/dev/xvdc11   /current/directory   ext4   defaults   0   0" >> /etc/fstab
票数 1
EN

Stack Overflow用户

发布于 2019-04-02 23:45:47

可以,您可以执行此操作,有关镜像管理的更多详细信息,请查看:https://www.ibm.com/support/knowledgecenter/en/SSBS6K_3.1.2/manage_images/image_manager.html也可以使用https://www.ibm.com/support/knowledgecenter/en/SSBS6K_3.1.2/apis/image_management.html接口完成此任务

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/55426815

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档