Cannot start docker container In docker CE on oracle linux

前端 未结 5 870
天命终不由人
天命终不由人 2021-01-01 23:12

Recently I installed Docker CE on my Oracle Linux.
Unfortunately, when I want to start my first container with:

docker run hello-world

5条回答
  •  情深已故
    2021-01-01 23:59

    Another approach to solve this issue is to run docker with privileged: true. Note that this flag, gives docker containers access to everything the host is doing i.e to all the devices, mounts and networks. So use it with caution.

    Another approach is set to set make sure to set "selinux-enabled": trueinside your daemon.json. This will make sure the docker knows that selinux is enabled on your system and uses the correct labels when starting the container. More info

提交回复
热议问题