草庐IT

location_var

全部标签

docker:来自守护进程的错误响应:连接错误:desc = "transport: dial unix:///var/run/docker/containerd/docker-containerd.sock: timeout"

当我尝试通过以下方式杀死Docker守护进程时:dockerkill$(dockerps-q)我收到以下错误:Errorresponsefromdaemon:Cannotkillcontainer:cf5fc4b0e5d1:Cannotkillcontainercf5fc4b0e5d152a7a89682d8835c40c59e9e0c2c41be4aae330ffeb8093814f2:connectionerror:desc="transport:dialunix:///var/run/docker/containerd/docker-containerd.sock:timeout

firebase - 在 flutter 中从 firebase 获取日期并将其存储在 var 中

有没有办法从firebase获取数据并将其存储为字符串,例如在flutter中?我希望我的应用程序具有基于角色的用户,每个用户都有一个角色和一个页面。firebase身份验证只有用户名和密码。在我的数据库中,我有用户集合,UID用作文档的ID,我想查询文档并获取角色值并将其作为字符串存储在变量中。http://prntscr.com/kwcyltContainer(height:50.0,child:Material(borderRadius:BorderRadius.circular(20.0),shadowColor:Colors.greenAccent,color:Colors.

Flutter 给出意外字符 : Undefined location error while working with graphql

我已经使用库graphql_flutter设置了我的graphql客户端,我正在尝试从另一个页面进行调用以呈现来自服务器API的项目列表,如下所示:main.dart中的Graphql客户端设置voidmain()=>runApp(MyApp());classMyAppextendsStatelessWidget{//Thiswidgetistherootofyourapplication.@overrideWidgetbuild(BuildContextcontext){HttpLinkhttpLink=HttpLink(uri:'http://192.168.122.1:8000/

android - location.getlocation() 在 android flutter 上给出了转换错误

首先导入并初始化位置包:import'package:location/location.dart'aslocationPackage;locationPackage.Locationlocation=newlocationPackage.Location();在安卓上运行代码:try{awaitlocation.getLocation().then((pos){setState((){print(pos.runtimeType);_center=LatLng(pos.latitude,pos.longitude);;_lastMapPosition=_center;});});}ca

redis - 停止redis导致/var/run/下的/redis/文件夹被删除

我有一个在套接字上运行redis的设置。在配置中,我有套接字的路径到/var/run/redis/redis.sock。每次redis停止时,文件夹/redis/与.sock文件一起从/var/run/中删除。所以当再次尝试启动redis时,它不会启动,因为文件夹丢失了。我必须在开始之前手动创建文件夹。知道如何解决这个问题吗? 最佳答案 临时解决方案是将您的套接字指向/var/lib/redis-sockets/同时“/var/lib/redis/”将被保护不被外部使用mkdir-p/var/lib/redis-sockets/ch

docker : Can a container A call an executable located on an other container B?

我有两个Docker镜像,一个包含pandoc(将不同格式的文档转换为多种格式的实用程序)和另一个包含pdflatex的工具(来自texlive,用于将tex文件转换为pdf)。我的目标是将文档从md转换为pdf。我可以单独运行每个图像:#callpandocinsidemy-pandoc-image(md->tex)dockerrun--rm\-v$(pwd):/pandoc\my-pandoc-image\pandoc-stest.md-otest.tex#callpdflatexinsidemy-texlive-image(tex->pdf)dockerrun--rm\-v$(p

docker : Can a container A call an executable located on an other container B?

我有两个Docker镜像,一个包含pandoc(将不同格式的文档转换为多种格式的实用程序)和另一个包含pdflatex的工具(来自texlive,用于将tex文件转换为pdf)。我的目标是将文档从md转换为pdf。我可以单独运行每个图像:#callpandocinsidemy-pandoc-image(md->tex)dockerrun--rm\-v$(pwd):/pandoc\my-pandoc-image\pandoc-stest.md-otest.tex#callpdflatexinsidemy-texlive-image(tex->pdf)dockerrun--rm\-v$(p

docker - 我可以清理/var/lib/docker/tmp 吗?

我的服务器是CoreOS。/var/lib/docker/tmp中有很多文件,它们的名字就像“GetV2ImageBlob998303926”。所有GetV2ImageBlobxxxxxxxxx文件的大小为640MB。我可以删除/var/lib/docker/tmp中的所有文件吗? 最佳答案 这在issues/14506中报告,并在PR14389中解决,现在PR15414.EnsureimagesdownloadedbypullTagV2arealwayscleanedupPreviously,ifonlysomeofthedown

docker - 我可以清理/var/lib/docker/tmp 吗?

我的服务器是CoreOS。/var/lib/docker/tmp中有很多文件,它们的名字就像“GetV2ImageBlob998303926”。所有GetV2ImageBlobxxxxxxxxx文件的大小为640MB。我可以删除/var/lib/docker/tmp中的所有文件吗? 最佳答案 这在issues/14506中报告,并在PR14389中解决,现在PR15414.EnsureimagesdownloadedbypullTagV2arealwayscleanedupPreviously,ifonlysomeofthedown

redis -/var/run/redis/redis.pid 存在,进程已经运行或崩溃

Redis让我很受用。user@mycomputer:~$redis-cliCouldnotconnecttoRedisat127.0.0.1:6379:Connectionrefused我尝试通过这样做来重启服务sudo/etc/init.d/redis_6379stop/var/run/redis/redis.pidexists,processisalreadyrunningorcrashed但运气不好。日志也没有显示错误。 最佳答案 通过备份我所在的redis.rdp文件修复了/var/lib/redis检查您的配置文件“/e