Client:
Version: 1.12.1
API version: 1.24
Go version: go1.6.3
Git commit: 23cf638
Built: Thu Aug 18 17:52:38 2016
OS/Arch: windows/amd64
Server:
Version: 1.12.1
API version: 1.24
Go version: go1.6.3
Git commit: 23cf638
Built: Thu Aug 18 17:52:38 2016
OS/Arch: linux/amd64
I’m very new to docker but I have been following very carefully a few examples to get an oracle xe database running on top of oraclelinux. Everything is great apart from the last step. All I need to do is start oracle as part of my image. In my dockerfile I have tried
Okay worked it out. I required the -d option to run the process in the background, this stopped the error “Failed to get D-Bus connection: Operation not permitted”. However the container still just stopped once oracle had started (i.e. the process as pid 1 had completed) so I had to make sure this did not happen by starting oracle (/etc/init.d/oracle-xe start) in a shell script and put the script in an infinite loop with a sleep command in their to stop it completing and now all is good.
Their must be a standard way of running docker containers in the background and keep them running? Is there a better way then what I have done?
Failed to get D-Bus connection: Operation not permitted
i got similar result when i want to install jenkins on Centos image on my Mac. Any help appreciated.
Still trying…found some where in google “# docker run -d -it --privileged /usr/sbin/init” Need to play around and see if that helps, will update shortly.