Skip to content

Kan inte starta pipelinen #6

@dmarell

Description

@dmarell
$ cd dockerApplicationServer2

$ git pull
Already up-to-date.

$ boot2docker up
Waiting for VM and Docker daemon to start...
..................ooo
Started.
Writing /Users/daniel/.boot2docker/certs/boot2docker-vm/ca.pem
Writing /Users/daniel/.boot2docker/certs/boot2docker-vm/cert.pem
Writing /Users/daniel/.boot2docker/certs/boot2docker-vm/key.pem
Your environment variables are already set correctly.

$ docker ps a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES

$ vagrant up --no-parallel --provider docker
Bringing machine 'git' up with 'docker' provider...
Bringing machine 'repository' up with 'docker' provider...
Bringing machine 'registry' up with 'docker' provider...
Bringing machine 'go' up with 'docker' provider...
Bringing machine 'go-agent' up with 'docker' provider...
==> git: Docker host is required. One will be created if necessary...
    git: Docker host VM is already ready.
==> repository: Docker host is required. One will be created if necessary...
    repository: Docker host VM is already ready.
==> repository: Syncing folders to the host VM...
    repository: Mounting shared folders...
    repository: /var/lib/docker/docker_1416261732_14428 => /Volumes/ssd1t/swc/dockerApplicationServer2
==> repository: Warning: When using a remote Docker host, forwarded ports will NOT be
==> repository: immediately available on your machine. They will still be forwarded on
==> repository: the remote machine, however, so if you have a way to access the remote
==> repository: machine, then you should be able to access those ports there. This is
==> repository: not an error, it is only an informational message.
==> repository: Creating the container...
    repository:   Name: repository
    repository:  Image: mattgruter/artifactory
    repository: Volume: /vagrant/artifactory/logs:/artifactory/logs
    repository: Volume: /var/lib/docker/docker_1416261732_14428:/vagrant
    repository:   Port: 18080:8080
A Docker command executed by Vagrant didn't complete successfully!
The command run along with the output from the command is shown
below.

Command: "docker" "run" "--name" "repository" "-d" "-p" "18080:8080" "-v" "/vagrant/artifactory/logs:/artifactory/logs" "-v" "/var/lib/docker/docker_1416261732_14428:/vagrant" "mattgruter/artifactory"

Stderr: 2014/11/17 22:02:12 Error response from daemon: Conflict, The name repository is already assigned to 3279769543a8. You have to delete (or rename) that container to be able to assign repository to a container again.

Stdout: 

Rebooting


$ vagrant global-status
 id       name        provider   state        directory                                          
------------------------------------------------------------------------------------------------
32aca5f  default     docker     running      /Volumes/ssd1t/swc/dockerApplicationServer         
7e71846  db          docker     running      /Volumes/ssd1t/swc/dockerApplicationServer         
89187eb  app         docker     preparing    /Volumes/ssd1t/swc/dockerApplicationServer         
be64c57  registry    docker     stopped      /Volumes/ssd1t/swc/dockerApplicationServer         
50f3953  nginx-proxy docker     stopped      /Volumes/ssd1t/swc/dockerApplicationServer         
2595eee  default     virtualbox running      /Volumes/ssd1t/swc/dockerApplicationServer/docker  
d14cff6  default     virtualbox inaccessible /Users/daniel/apps/elk                             
a5d9ef7  git         docker     preparing    /Volumes/ssd1t/swc/dockerApplicationServer         
fd749fc  repository  docker     preparing    /Volumes/ssd1t/swc/dockerApplicationServer         
7bb738d  go          docker     preparing    /Volumes/ssd1t/swc/dockerApplicationServer         
63e05a8  go-agent    docker     preparing    /Volumes/ssd1t/swc/dockerApplicationServer         
ba303f3  default     virtualbox running      /Volumes/ssd1t/swc/javadevmachine/test1            
cce783d  default     virtualbox running      /Volumes/ssd1t/swc/javadevmachine                  
3d6ef74  ubuntu      virtualbox poweroff     /Volumes/ssd1t/swc/iac-prep                        
07141bc  docker      virtualbox poweroff     /Volumes/ssd1t/swc/iac-prep                        
a6bf564  default     virtualbox aborted      /Volumes/ssd1t/swc/dockerApplicationServer2/docker 
3548003  git         docker     running      /Volumes/ssd1t/swc/dockerApplicationServer2        

$ vagrant global-status --prune
/Volumes/ssd1t/swc/iac-prep/Vagrantfile:5: warning: already initialized constant VAGRANTFILE_API_VERSION
/Volumes/ssd1t/swc/iac-prep/Vagrantfile:5: warning: previous definition of VAGRANTFILE_API_VERSION was here
/Volumes/ssd1t/swc/dockerApplicationServer2/Vagrantfile:6: warning: already initialized constant VAGRANTFILE_API_VERSION
/Volumes/ssd1t/swc/iac-prep/Vagrantfile:5: warning: previous definition of VAGRANTFILE_API_VERSION was here
The working directory for Vagrant doesn't exist! This is the
specified working directory:

docker

$ vagrant global-status
id       name        provider   state        directory                                          
------------------------------------------------------------------------------------------------
32aca5f  default     docker     running      /Volumes/ssd1t/swc/dockerApplicationServer         
7e71846  db          docker     running      /Volumes/ssd1t/swc/dockerApplicationServer         
89187eb  app         docker     preparing    /Volumes/ssd1t/swc/dockerApplicationServer         
be64c57  registry    docker     stopped      /Volumes/ssd1t/swc/dockerApplicationServer         
50f3953  nginx-proxy docker     stopped      /Volumes/ssd1t/swc/dockerApplicationServer         
2595eee  default     virtualbox running      /Volumes/ssd1t/swc/dockerApplicationServer/docker  
d14cff6  default     virtualbox inaccessible /Users/daniel/apps/elk                             
a5d9ef7  git         docker     preparing    /Volumes/ssd1t/swc/dockerApplicationServer         
fd749fc  repository  docker     preparing    /Volumes/ssd1t/swc/dockerApplicationServer         
7bb738d  go          docker     preparing    /Volumes/ssd1t/swc/dockerApplicationServer         
63e05a8  go-agent    docker     preparing    /Volumes/ssd1t/swc/dockerApplicationServer         
ba303f3  default     virtualbox running      /Volumes/ssd1t/swc/javadevmachine/test1            
cce783d  default     virtualbox running      /Volumes/ssd1t/swc/javadevmachine                  
3d6ef74  ubuntu      virtualbox poweroff     /Volumes/ssd1t/swc/iac-prep                        
07141bc  docker      virtualbox poweroff     /Volumes/ssd1t/swc/iac-prep                        
a6bf564  default     virtualbox aborted      /Volumes/ssd1t/swc/dockerApplicationServer2/docker 
3548003  git         docker     running      /Volumes/ssd1t/swc/dockerApplicationServer2        

$ vagrant destroy -f 32aca5f
The working directory for Vagrant doesn't exist! This is the
specified working directory:

/Volumes/ssd1t/swc/dockerApplicationServer

Det är helt riktigt, den mappen har jag tagit bort.

Bör jag radera någon trasig virtualbox-maskin eller rensa nåt annat?


$ VBoxManage list vms
"<inaccessible>" {bdb7b285-d4ec-4221-b0ca-835965a92533}
"<inaccessible>" {ebdad6e7-c956-44cf-9167-cd0184088642}
"boot2docker-vm" {e94650d7-4354-430b-ad75-b3b67f79037b}
"iac-prep_ubuntu_1416251021063_97193" {8b7b357c-d235-40f6-8a3a-fd9c21a60ed1}
"iac-prep_docker_1416251117795_39002" {27fde231-be88-49f3-9ccd-17ac306ccab8}
"docker_default_1416259388107_9661" {798ac7c6-34c1-4d22-9d76-fe8b0476443c}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions