Aerospike Connect to kafka: docker: Error response from daemon: invalid mode: /etc/aerospike-kafka-outbound/aerospike-kafka-outbound.yml


I am trying Aerospike Connect to Kafka.
OS: Windows

I referred
I referred: ‘# With Aerospike 5.0 and later’ for deploying on docker

I have these running in docker:

My Windows path for the file: C:/aerospike-kafka-outbound/aerospike-kafka-outbound.yml

C:UsersNupur>docker ps
CONTAINER ID   IMAGE                                      COMMAND                  CREATED          STATUS          PORTS                              NAMES
1114b8a97406   aerospike/aerospike-kafka-outbound:4.0.0   "/bin/sh -c '/opt/${…"   37 seconds ago   Up 29 seconds                                      compassionate_hofstadter
93343be1d481   aerospike/aerospike-tools                  "wrapper aql -h 172.…"   4 hours ago      Up 4 hours                                         dreamy_mendeleev
5f00ee532c4e   aerospike/amc                              "/opt/amc/amc ' -con…"   8 days ago       Up 4 hours>8081/tcp             aerospike-consoles
a81ff04dbd74   aerospike/aerospike-server-enterprise      "/usr/bin/tini -r SI…"   8 days ago       Up 4 hours>3000-3002/tcp   aerospike


C:UsersNupur>docker run -p 8080:8080 -v /C:/aerospike-kafka-outbound/aerospike-kafka-outbound.yml:/etc/aerospike-kafka-outbound/aerospike-kafka-outbound.yml aerospike/aerospike-kafka-outbound:4.0.0
docker: Error response from daemon: invalid mode: /etc/aerospike-kafka-outbound/aerospike-kafka-outbound.yml.
See 'docker run --help'.

As for the front slash used in Windows path, on using backslash:

C:Usersws_htu784>docker run -p 8080:8080 -v C:aerospike-kafka-outboundaerospike-kafka-outbound.yml:/etc/aerospike-kafka-outbound/aerospike-kafka-outbound.yml aerospike/aerospike-kafka-outbound:4.0.0
docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: rootfs_linux.go:76: mounting "/run/desktop/mnt/host/c/aerospike-kafka-outbound/aerospike-kafka-outbound.yml" to rootfs at "/etc/aerospike-kafka-outbound/aerospike-kafka-outbound.yml" caused: mount through procfd: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type.

This is my docker directory:

C:UsersNupur>docker exec -it 1114b8a97406 bash
[email protected]:/# ls
bin  boot  dev  etc  home  lib  lib64  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var
[email protected]:/# cd /etc
[email protected]:/etc# ls
adduser.conf              ca-certificates.conf  environment  host.conf    machine-id     pam.conf   rc1.d  resolv.conf  shells    timezone
aerospike-kafka-outbound  cron.daily            fstab        hostname     mke2fs.conf    pam.d      rc2.d  rmt          skel      update-motd.d
alternatives              debconf.conf          gai.conf     hosts   motd           passwd     rc3.d  securetty    ssl       xattr.conf
apt                       debian_version        group        init.d     libaudit.conf  mtab           passwd-    rc4.d  security     subgid
bash.bashrc               default               group-       issue      localtime      nsswitch.conf  profile    rc5.d  selinux      subuid
bindresvport.blacklist    deluser.conf          gshadow  login.defs     opt            profile.d  rc6.d  shadow       systemd
ca-certificates           dpkg                  gshadow-     kernel     logrotate.d    os-release     rc0.d      rcS.d  shadow-      terminfo
[email protected]:/etc# cd aerospike-kafka-outbound
[email protected]:/etc/aerospike-kafka-outbound# ls
[email protected]:/etc/aerospike-kafka-outbound#

Source: Docker Questions

Categorised as aerospike, apache-kafka, apache-kafka-connect, docker Tagged , , ,


Leave a Reply

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us