Vagrant box with Docker provider not correctly starting up

Hello! I have a Centos Stream 8 VM running with Vagrant and Docker. I can SSH into the machine just fine, and I have done a bunch of setup to use this VM as a development environment for a project. I have tried to setup a shared folder but when running vagrant up, the machine stops after Machine booted and ready and gives me this error:

The executable '/sbin/ip' Vagrant is trying to run was not
found in the PATH variable. This is an error. Please verify
this software is installed and on the path.

I thought this was fine until I realized that my co-workers have a bunch of steps after this that set up the shared folders and private networks and stuff. I have verified that /sbin/ip is on the path on both my host machine (MacOS 12.2.1) and on the VM. Reinstalling vagrant was also unsuccessful.

My vagrant version is 2.2.19


Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.define "dev" do |dev| :private_network, ip: "" "forwarded_port", id: "ssh", host: 2222, guest: 22

    dev.vm.hostname = "vdev"
    dev.vm.synced_folder "~/data", "/data", nfs: true,
      nfs_export: true, nfs_udp: true, nfs_version: 3,
      :mount_options => ['nolock,vers=3,udp,noatime,actimeo=1']
    dev.ssh.forward_agent = true
    dev.vm.provider :docker do |d|
        d.privileged = true
        d.build_dir = "."
        d.remains_running = true
        d.has_ssh = true


FROM tgagor/centos:stream8
ENV container docker

# Add sshd server so we can 'vagrant ssh' later
RUN dnf -y install openssh-server openssh-clients passwd sudo; 
RUN mkdir /var/run/sshd
RUN ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''
RUN useradd --create-home -s /bin/bash vagrant
RUN echo -e "vagrant\nvagrant" | (passwd --stdin vagrant)
RUN echo 'vagrant ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/vagrant
RUN chmod 440 /etc/sudoers.d/vagrant
RUN mkdir -p /home/vagrant/.ssh
RUN chmod 700 /home/vagrant/.ssh
ADD /home/vagrant/.ssh/authorized_keys
RUN chmod 600 /home/vagrant/.ssh/authorized_keys
RUN chown -R vagrant:vagrant /home/vagrant/.ssh

# Allow public key authentication for 'vagrant ssh'
RUN sed -i 's/^#PubkeyAuthentication yes/PubkeyAuthentication yes/i' /etc/ssh/sshd_config

# Install the replacement systemctl command
RUN yum -y install python3
COPY src/docker-systemctl-replacement/files/docker/ /usr/bin/systemctl
RUN chmod 755 /usr/bin/systemctl

CMD /usr/bin/systemctl