You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vagrant.configure("2") do |config|
config.vm.provider "docker" do |d|
d.image = "alpine"
d.remains_running = true
d.cmd = ["sleep", "infinity"]
end
end
vagrant docker-exec -- ls
Output
/opt/vagrant/embedded/gems/gems/childprocess-4.1.0/lib/childprocess/abstract_process.rb:44:in `initialize': all arguments must be String: ["/usr/local/bin/docker", "exec", "9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa", "ls", {:detach=>false, :pty=>false, :interactive=>false, :prefix=>true}] (ArgumentError)
from /opt/vagrant/embedded/gems/gems/childprocess-4.1.0/lib/childprocess.rb:23:in `new'
from /opt/vagrant/embedded/gems/gems/childprocess-4.1.0/lib/childprocess.rb:23:in `new'
from /opt/vagrant/embedded/gems/gems/vagrant-2.4.1/lib/vagrant/util/subprocess.rb:87:in `execute'
from /opt/vagrant/embedded/gems/gems/vagrant-2.4.1/lib/vagrant/util/subprocess.rb:25:in `execute'
from /opt/vagrant/embedded/gems/gems/vagrant-2.4.1/plugins/providers/docker/executor/local.rb:20:in `block in execute'
from /opt/vagrant/embedded/gems/gems/vagrant-2.4.1/lib/vagrant/util/busy.rb:22:in `busy'
from /opt/vagrant/embedded/gems/gems/vagrant-2.4.1/plugins/providers/docker/executor/local.rb:19:in `execute'
from /opt/vagrant/embedded/gems/gems/vagrant-2.4.1/plugins/providers/docker/driver.rb:334:in `execute'
from /opt/vagrant/embedded/gems/gems/vagrant-2.4.1/plugins/providers/docker/command/exec.rb:97:in `exec_command'
from /opt/vagrant/embedded/gems/gems/vagrant-2.4.1/plugins/providers/docker/command/exec.rb:75:in `block in execute'
from /opt/vagrant/embedded/gems/gems/vagrant-2.4.1/lib/vagrant/plugin/v2/command.rb:249:in `block in with_target_vms'
from /opt/vagrant/embedded/gems/gems/vagrant-2.4.1/lib/vagrant/plugin/v2/command.rb:238:in `each'
from /opt/vagrant/embedded/gems/gems/vagrant-2.4.1/lib/vagrant/plugin/v2/command.rb:238:in `with_target_vms'
from /opt/vagrant/embedded/gems/gems/vagrant-2.4.1/plugins/providers/docker/command/exec.rb:70:in `execute'
from /opt/vagrant/embedded/gems/gems/vagrant-2.4.1/lib/vagrant/cli.rb:67:in `execute'
from /opt/vagrant/embedded/gems/gems/vagrant-2.4.1/lib/vagrant/environment.rb:319:in `cli'
from /opt/vagrant/embedded/gems/gems/vagrant-2.4.1/bin/vagrant:248:in `<main>'
The text was updated successfully, but these errors were encountered:
This line seems to have a bug causing error when running
docker-exec
vagrant/plugins/providers/docker/command/exec.rb
Lines 96 to 98 in faf9014
Steps to reproduce
Environment: Vagrant 2.4.1, macOS 14.2.1
vagrant docker-exec -- ls
Output
The text was updated successfully, but these errors were encountered: