force_host_vm = false# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.define "db" do |db|
db.ssh.username = "root"
db.ssh.password = "xxxxx"
db.ssh.host = "localhost"
db.ssh.port = 2202
db.vm.provider "docker" do |d|
d.image = "xxxxx:8091/ims-oracle"
d.force_host_vm = false
d.ports = [ "49162:1521" ]
d.has_ssh = true
end
end
config.vm.define "adc" do |adc|
adc.vm.box = "nick/win2012core-ad"
adc.vm.box_url = "http://xxxx:8081/repository/vagrant/nick/win2012core-ad/metadata.json"
adc.vm.network "forwarded_port", guest: 88, host: 10088, protocol: "tcp"
adc.vm.network "forwarded_port", guest: 88, host: 10088, protocol: "udp"
adc.vm.network "forwarded_port", guest: 53, host: 10053, protocol: "tcp"
adc.vm.network "forwarded_port", guest: 53, host: 10053, protocol: "udp"
end
end
~
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
bca7bcd2ce13 dhpsciq01:8091/ims-oracle "/bin/sh -c '/usr/..." 14 hours ago Up 21 seconds 22/tcp, 8080/tcp, 0.0.0.0:49162->1521/tcp ims_db_1490789906
when using docker only config
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.ssh.username = "root"
config.ssh.password = "admin"
config.ssh.host = "localhost"
config.ssh.port = 2202
config.vm.provider "docker" do |d|
# d.vagrant_vagrantfile = "./docker-host-vm/Vagrantfile"
d.image = "dhpsciq01:8091/ims-oracle"
d.has_ssh = true
d.force_host_vm = false
d.ports = [ "49162:1521" ]
end
end
the output from docker ps is:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
6363f2bd65cf dhpsciq01:8091/ims-oracle "/bin/sh -c '/usr/..." 21 hours ago Up 14 seconds 8080/tcp, 127.0.0.1:2202->22/tcp, 0.0.0.0:49162->1521/tcp oracle-sacs_default_1490715212
default: Rsyncing folder: /Volumes/NickSSD/vagrant-test/ims/ => /var/lib/docker/docker_1490795341_77261
doc...@192.168.177.158's password:
doc...@192.168.177.158's password:
doc...@192.168.177.158's password:
There was an error when attempting to rsync a synced folder.
Please inspect the error message below for more info.
Host path: /Volumes/NickSSD/vagrant-test/ims/
Guest path: /var/lib/docker/docker_1490795341_77261
Command: "rsync" "--verbose" "--archive" "--delete" "-z" "--copy-links" "--no-owner" "--no-group" "--rsync-path" "sudo rsync" "-e" "ssh -p 22 -o LogLevel=FATAL -o ControlMaster=auto -o ControlPath=/var/folders/sj/lmnd606j5nl3xs5tpk14lr680000gn/T/ssh.540 -o ControlPersist=10m -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" "--exclude" ".vagrant/" "/Volumes/NickSSD/vagrant-test/ims/" "doc...@192.168.177.158:/var/lib/docker/docker_1490795341_77261"
Error: Permission denied (publickey,password,keyboard-interactive).
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: unexplained error (code 255) at /BuildRoot/Library/Caches/com.apple.xbs/Sources/rsync/rsync-51/rsync/io.c(453) [sender=2.6.9]
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/1480e4bb-d6a2-47f8-a6f9-bea238fb89d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.