报错: Failed to get D-Bus connection: Operation not permitted
or
mysql -u root -p 登录mysql时报错
2020-09-16T095531.403+0800 ERROR [publisher_pipeline_output] pipelineoutput.go154 Failed to connect to backoff(elasticsearch(http192.168.100.99200)) Connection marked as failed because the onConnect callback failed Filebeat requires the default distribution of Elasticsearch. Please update to the default distribution of Elasticsearch for full access to all free features, or switch to the OSS
The translation is as follows
error [publisher_pipeline_output] pipeline/output. go:154 connection fallback failed (elasticsearch(http://192.168.100.9:9200)): the connection is marked as failed because the onConnect callback failed: Filebeat requires the default distribution of elastic search. Please update to the default distribution of Elasticsearch for full access to all free features, or switch to Filebeat distributed by OSS.
Failed to get D-Bus connection: Operation not permitted
Solution, add this parameter to run the container
–pricileged=true 带权限登录,不降权登录
If this parameter is not added, there will be a phenomenon
that you cannot log in to mysql . Solve after execution
[root@docker2 mysql]# docker run -d --privileged=true -P centos7:mysql5.7.1