2016-08-22 56 views
0

我試圖在Ubuntu 14.04 ec2實例上測試出中央集線器。我試圖使用documentation.中顯示的docker-compose示例使用軟件的集裝箱版本。但是,在大約15秒後,任何嘗試容器都會失敗。我只是在ec2上尋找一個快速安裝的大廳,所以我可以測試它,如何使用集裝箱版本的軟件運行它?Concorse web-ui容器不斷死亡

更多信息:

這裏是我用得到它的腳本並運行:

mkdir concourse 
cd concourse 
mkdir -p keys/web keys/worker 

ssh-keygen -t rsa -f ./keys/web/tsa_host_key -N '' 
ssh-keygen -t rsa -f ./keys/web/session_signing_key -N '' 

ssh-keygen -t rsa -f ./keys/worker/worker_key -N '' 

cp ./keys/worker/worker_key.pub ./keys/web/authorized_worker_keys 
cp ./keys/web/tsa_host_key.pub ./keys/worker 

# for ec2 
export CONCOURSE_EXTERNAL_URL=$(wget -q -O - http://instance-data/latest/meta-data/public-ipv4) 

#creating docker compose file 
echo 'concourse-db: 
    image: postgres:9.5 
    environment: 
    POSTGRES_DB: concourse 
    POSTGRES_USER: concourse 
    POSTGRES_PASSWORD: changeme 
    PGDATA: /database 

concourse-web: 
    image: concourse/concourse 
    links: [concourse-db] 
    command: web 
    ports: ["8080:8080"] 
    volumes: ["./keys/web:/concourse-keys"] 
    environment: 
    CONCOURSE_BASIC_AUTH_USERNAME: concourse 
    CONCOURSE_BASIC_AUTH_PASSWORD: changeme 
    CONCOURSE_EXTERNAL_URL: "${CONCOURSE_EXTERNAL_URL}" 
    CONCOURSE_POSTGRES_DATA_SOURCE: | 
     postgres://concourse:[email protected]:5432/concourse?sslmode=disable 

concourse-worker: 
    image: concourse/concourse 
    privileged: true 
    links: [concourse-web] 
    command: worker 
    volumes: ["./keys/worker:/concourse-keys"] 
    environment: 
    CONCOURSE_TSA_HOST: concourse-web' > docker-compose.yml 

docker-compose up -d 

但是做一個docker-compose up -dconcorse_concourse-web_1容器約15秒後停止運行,我不能在任何時候通過瀏覽器連接到它。以下是在到底對不對容器的搬運工日誌時失敗(還有更多,但我不能適合所有所以只是測試它自己看到完整的日誌):

panic: runtime error: invalid memory address or nil pointer dereference 
[signal 0xb code=0x1 addr=0x0 pc=0x5e093a] 

goroutine 1 [running]: 
panic(0xfba6c0, 0xc820016070) 
     /usr/local/go/src/runtime/panic.go:481 +0x3e6 
github.com/concourse/atc/atccmd.(*ATCCommand).constructAPIHandler(0xc82023c608, 0x7ff484d1b5d0, 0xc8200501e0, 0xc82026f0e0, 0xc8202c9300, 0x7ff484d1d858, 0xc82030c5c0, 0x7ff484d1d980, 0xc8202afda0, 0x7ff484d1d958, ...) 
     /tmp/build/9674af12/concourse/src/github.com/concourse/atc/atccmd/command.go:787 +0x121a 
github.com/concourse/atc/atccmd.(*ATCCommand).Runner(0xc82023c608, 0xc820270d30, 0x0, 0x1, 0x0, 0x0, 0x0, 0x0) 
     /tmp/build/9674af12/concourse/src/github.com/concourse/atc/atccmd/command.go:221 +0xe44 
main.(*WebCommand).Execute(0xc82023c608, 0xc820270d30, 0x0, 0x1, 0x0, 0x0) 
     /tmp/build/9674af12/gopath/src/github.com/concourse/bin/cmd/concourse/web.go:54 +0x297 
github.com/concourse/bin/vendor/github.com/vito/twentythousandtonnesofcrudeoil.installEnv.func2(0x7ff484d0b5e0, 0xc82023c608, 0xc820270d30, 0x0, 0x1, 0x0, 0x0) 
     /tmp/build/9674af12/gopath/src/github.com/concourse/bin/vendor/github.com/vito/twentythousandtonnesofcrudeoil/environment.go:30 +0x81 
github.com/concourse/bin/vendor/github.com/jessevdk/go-flags.(*Parser).ParseArgs(0xc8200512c0, 0xc82000a150, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0) 
     /tmp/build/9674af12/gopath/src/github.com/concourse/bin/vendor/github.com/jessevdk/go-flags/parser.go:312 +0xa34 
github.com/concourse/bin/vendor/github.com/jessevdk/go-flags.(*Parser).Parse(0xc8200512c0, 0x0, 0x0, 0x0, 0x0, 0x0) 
     /tmp/build/9674af12/gopath/src/github.com/concourse/bin/vendor/github.com/jessevdk/go-flags/parser.go:185 +0x9b 
main.main() 
     /tmp/build/9674af12/gopath/src/github.com/concourse/bin/cmd/concourse/main.go:29 +0x10d 

還試圖停止和刪除後concorse_concourse-worker_1容器的容器不能被移除,並且在docker ps -a中顯示爲Dead。試圖刪除它時,會出現以下錯誤消息:

[email protected]:~/concorse$ docker rm a005503d568b 
Error response from daemon: Driver aufs failed to remove root filesystem a005503d568b4931f860334e95ff37265dc0913083d3592f0291e023275bbf20: rename /var/lib/docker/aufs/diff/9bcff3a39934ea3525bf8a06ef900bf9dfba59a5187747beb65e9ba5709ebf75 /var/lib/docker/aufs/diff/9bcff3a39934ea3525bf8a06ef900bf9dfba59a5187747beb65e9ba5709ebf75-removing: device or resource busy 

回答