ה SAMBA מאפשרת העברת קבצים בצורה נעימה יותר
דוגמה ל Dockerfile מינימלי להרצת סמבה
FROM ubuntu
RUN apt-get update
RUN apt-get -y install samba
EXPOSE 139
RUN printf "[storage]\n path = /storage\n read only = no\n" >>/etc/samba/smb.conf
RUN printf "root\nroot\n" | smbpasswd -a -s root
CMD /usr/sbin/smbd -Fi
הפקודות להרצה
runai submit --pvc=storage:/storage -g 0.5 -i uuddii/samba --name samba
runai port-forward samba --port 30123:139
הפקודות להתחברות
בסגנון FTP
smbclient //localhost/storage -p 30123 -U root
או בסגנון תיקיה
sudo mkdir /mountPoint
sudo mount.cifs "//localhost/storage" /mountPoint -o user='root',pass='root',port=30123
אם mount.cifs לא קיים צריך להתקין apt install cifs-utils smbclient