以特权模式运行的容器 [英] container running in privileged mode
本文介绍了以特权模式运行的容器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是Docker的新手,我有一个centos映像以特权模式在Docker内部作为容器运行.我想对该图像执行一些操作,但是我不能成为根用户.在特权模式下声明该图像时如何对图像执行操作.这是我在特权模式下运行时的结果
I am new to Docker, I have a centos image running as a container inside the docker in privileged mode. I want to perform some operations on this image but I can't the root. how I can perform the operations on this image when I stated it in privileged mode. this is the outcome when I run it in privileged mode
推荐答案
我通过运行此命令打开容器的新实例解决了这个问题 sudo docker exec -i -t a6f7c25afbbf/bin/bash
I have solved the problem by opening the new instance of the container by running this command sudo docker exec -i -t a6f7c25afbbf /bin/bash
这篇关于以特权模式运行的容器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文