我已cassandra 2.0成功安装.当我尝试开始时,cql 3我没有这样的选择:
cassandra -v
2.0.9
./cqlsh -3
Usage: cqlsh [options] [host [port]]
cqlsh: error: no such option: -3
Run Code Online (Sandbox Code Playgroud) 我需要启用 postgreSQL 的重音符号。这是我的docker-compose.yml,但不起作用。有小费吗?谢谢。
db:
image: postgres
ports:
- 5432
environment:
DB_UNACCENT: true
mailcatcher:
image: aboutsource/mailcatcher
ports:
- "1080:1080"
web:
build: .
command: passenger start --port 3000
volumes:
- .:/myapp
environment:
- RAILS_ENV=development
ports:
- "3000:3000"
- "25:25"
- "587:587"
links:
- db
- mailcatcher
Run Code Online (Sandbox Code Playgroud) 我有Dockerfile以下内容:
FROM <docker-registry>/<image>:latest
COPY mv setup /root/
RUN setup
Run Code Online (Sandbox Code Playgroud)
当我这样做时docker-compose up -d,Docker会拉动图像并执行步骤.
当我做一个docker-compose stop并重新启动它时,docker-compose dos不会再次拉出最新的图像.这对我来说是个问题,因为我需要下载新图像.我这样做的唯一方法是炸掉boot2docker vm并重新开始.
我们的Nexus 服务器为我们的 Java 项目提供构建工件,包括其安装程序。该安装程序非常大(> 1GB)。我想检索并在Dockerfile.
到目前为止,我所做的如下:
FROM debian:jessie
...
RUN apt-get install -y curl xmllib-xpath-perl
ENV PROJECT_VERSION x.y.z-SNAPSHOT
...
RUN VERSION=`curl --silent "http://nexus:8081/service/local/artifact/maven/resolve?r=public&g=my.group.id&a=installer&v=${PROJECT_VERSION}&e=sh&c=linux64" | xpath -q -s '' -e '//data/version/text()'` \
&& echo Version:\'${VERSION}\' \
&& curl --silent http://nexus/content/groups/public/my/group/id/installer/${PROJECT_VERSION}/installer-${VERSION}-linux64.sh \
--create-dirs \
--output ${INSTALL_DIR}/installer.sh \
&& sh ${INSTALL_DIR}/installer.sh <someArgs> \
&& rm ${INSTALL_DIR}/installer.sh
...
Run Code Online (Sandbox Code Playgroud)
通过这种方法,我能够:
${PROJECT_VERSION}期间注销docker build有什么不见了:
每当我尝试运行docker-compose up它时,会显示与客户端和服务器版本不匹配相关的以下错误.
client and server don't have same version (client : 1.19, server: 1.18)
Run Code Online (Sandbox Code Playgroud)
以下是docker-compose和docker本身的已安装版本.docker和docker-compose都没有1.19和1.18版本.所以实际上这条消息指的是哪个客户端和服务器?
[root@node1 composetest]# docker -v
Docker version 1.6.2, build 7c8fca2/1.6.2
[root@node1 composetest]# docker-compose up
client and server don't have same version (client : 1.19, server: 1.18)
Run Code Online (Sandbox Code Playgroud)
进一步如何解决这个问题.我正在使用centos 6并将docker升级到最新版本.我使用pip安装了docker-compose.
我试图了解neo4j的有效使用模式,特别是参考高度节点.为了解我正在谈论的内容,我的User节点具有我已建模为节点的属性.所以我的表中有关系如
(:User)-[:HAS_ATTRIB]->(:AgeCategory)
Run Code Online (Sandbox Code Playgroud)
等等等等.问题是这些AgeCategory节点中的一些节点非常高,大约为100k,而查询如
MATCH (u:User)-->(:AgeCategory)<--(v:User), (u)-->(:FavoriteLanguage)<--(v)
WHERE u.uid = "AAA111" AND v.uid <> u.uid
RETURN v.uid
Run Code Online (Sandbox Code Playgroud)
(匹配所有共享相同年龄类别和喜欢的语言的用户AAA111)非常非常慢,因为您必须为FavoriteLanguage链表中的每个元素运行一次AgeCategory链表(或者至少我理解它的方式).
我认为很明显,这个查询需要花费几分钟来解决我做错了什么,但我很好奇处理这样的查询的正确程序是什么.我应该从每个查询中单独下拉匹配用户并将它们与内存中的哈希进行比较吗?有没有办法在节点上建立关系?对于架构开始,这是一个好主意吗?
使用boot2docker它可以在初始化虚拟机时轻松设置一些 VirtualBox 虚拟机选项,例如:
boot2docker --disksize=50000 --memory=4096 ...
Run Code Online (Sandbox Code Playgroud)
由于最新的技术是使用我的问题创建这些虚拟机:在创建新虚拟机时docker-machine如何将这些选项传递给:docker-machine
docker-machine create -d virtualbox test
Run Code Online (Sandbox Code Playgroud) 每个容器都与名为like的主机上的虚拟以太网接口相关联veth7K7R1J。我可以在找到它/sys/class/net/veth7K7R1J/statistics。但是我想知道如何找到这种关系。有没有办法做到这一点?
我正在尝试学习Docker,我创建了一个运行MySQL服务器的容器.它运行正常,当我在本地运行Spring Boot应用程序(没有Docker)时,我可以使用Spring Boot应用程序中的MySQL.但是当我尝试在另一个Docker容器中运行Spring Boot应用程序时,与MySQL的连接失败并且我收到错误:java.net.ConnectException: Connection refused
在我的Spring Boot中application.properties我有这样的配置:
spring.datasource.url: jdbc:mysql://127.0.0.1/mydb
spring.datasource.username=root
spring.datasource.password=
spring.datasource.driverClassName=com.mysql.jdbc.Driver
Run Code Online (Sandbox Code Playgroud)
什么想法可能是错的?
刚刚安装了Docker,但docker-machine env default不起作用:
$ docker-machine env default
open /Users/me/.docker/machine/machines/default/ca.pem: no such file or directory
Run Code Online (Sandbox Code Playgroud)
路径/Users/me/.docker/machine/machines/default存在,但其中没有ca.pem.只是一堆其他文件.
docker ×8
boot2docker ×2
cql ×1
cql3 ×1
cqlsh ×1
curl ×1
cypher ×1
dockerfile ×1
macos ×1
mysql ×1
neo4j ×1
networking ×1
nexus ×1
postgresql ×1
spring-boot ×1