我有一个包含许多服务的#include "std_lib_facilities.h"
int main()
{
double v1 = 0, v2 = 0, larger, smaller;
cout << "Enter two numbers: ";
while(cin >> v1 >> v2)
{
if (v1 > v2)
{
cout << "The smaller of the two numbers is: " << v2 << "\n";
smaller = v2;
larger = v1;
}
else if (v1 == v2)
{
cout << "The numbers are equal. \n";
}
else if(v1 < v2)
{
cout << "The smaller of the two numbers is: " << v1 << "\n";
smaller = v1;
larger = v2;
}
if((larger-smaller)<1.0/100)
{
cout << "the numbers are almost equal" << endl;
}
cout << "Enter two numbers: ";
}
}
return 0;
文件。每当我运行docker-compose.yml
时,我都会看到服务的名称,这很棒。
问题是在syslog中看不到服务的名称。有什么提示吗?
docker-compose.yml
docker-compose up
运行命令
mydocker:
image: mydocker
command: echo mydocker
log_driver: syslog
log_opt:
syslog-address: "<url-goes-here>"
yourdocker:
image: mydocker
command: echo your
log_driver: syslog
log_opt:
syslog-address: "<url-goes-here>"