我正在尝试通过docker-compose运行Couchdb:
version: '3'
services:
couchdb:
image: "couchdb:2"
restart: always
ports:
- 5984:5984
volumes:
- /data/couchdb:/opt/couchdb/etc/
- /data/couchdb_config:/opt/couchdb/etc/local.d
environment:
- COUCHDB_USER=myuser
- COUCHDB_PASSWORD=mypassword
容器在启动过程中崩溃:
无法打开参数文件“ /opt/couchdb/bin/../etc/vm.args”:没有这样的文件或目录
用法:错误……
grep:/opt/couchdb/etc/default.d/*.ini:没有这样的文件或目录
在data / couchdb_config中,我提供了一个标准的local.ini文件。当我不这样做时,ouchdb也会抱怨它也丢失了。
这是什么问题?
答案 0 :(得分:1)
您需要在数据路径之前设置点。Docker-comose需要知道数据与docker-compose文件位于同一路径
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<section class="content container-fluid" id="quiz">
<button class="btn btn-primary" id="next">Next</button>
<button class="btn btn-info" id="prev">Prev</button>
<button class="btn btn-default" id="start">Start Over</button> //checkboxes inputs for the final results
<ul id="result-input" class="hide-input">
<li><input type="checkbox" name="answer" value="0">1</li>
<li><input type="checkbox" name="answer" value="1">2</li>
<li><input type="checkbox" name="answer" value="2">3</li>
<li><input type="checkbox" name="answer" value="3">4</li>
<li><input type="checkbox" name="answer" value="4">5</li>
<li><input type="checkbox" name="answer" value="5">6</li>
</ul>
</section>
答案 1 :(得分:0)
错误是错误的卷的映射:
my_couchdb_data:/opt/couchdb/data
应该是
// here we add event handler for newly created checkboxes.
nextQuestion.find("input[type='checkbox']").on('change', function () {
if ($(this).is(":checked")) {
//add checkbox background when is checked
$(this).addClass("input-before");
//uncheck the checkbox if another checkbox is checked
$('#next').prop("disabled", false);
$('input.cb').not(this).prop('checked', false, function(){
//remove the background ...this is not working
$(this).removeClass("input-before");
})
} else {
$('#next').prop("disabled", true);
$(this).removeClass("input-before");
}
});