Public Repository

Last pushed: a year ago
Short Description
samba pdc
Full Description

docker run -ti -m 256M --cpu-shares 256 --name sambapdc -h pdc -u root --restart=always --link zabbix --link squid --entrypoint /bin/bash

Dockerfile

FROM debian

MAINTAINER wesley valger wesleyvalger@gmail.com

LABEL description="SAMBA PDC 1.0"

RUN apt-get update && apt-get dist-upgrade -y && apt-get install -y vim net-tools winbind samba smbclient cups acl attr ntp && apt-get autoclean && apt-get autoremove -y && mv /etc/samba/smb.conf /etc/samba/smb.conf_old && samba-tool domain provision --use-rfc2307 --realm='teste.local.br' --domain='teste' --server-role='dc' --dns-backend='SAMBA_INTERNAL' --adminpass='Sysamb@dmin4525' && cp /var/lib/samba/private/krb5.conf /etc/krb5.conf && echo "/etc/init.d/samba-start.sh" >> /etc/bash.bashrc

ADD samba-start.sh /etc/init.d/samba-start.sh

USER sambadmin

WORKDIR /etc/samba/

VOLUME /home/samba/:/home/

EXPOSE 88 135 136 137 138 139 445


criar aquivo junto ao Dockerfile
samba-start.sh

#!/bin/bash

/etc/init.d/nmbd start
/etc/init.d/smbd start
/etc/init.d/samba-ad-dc start

Docker Pull Command
Owner
wesleyvalger

Comments (0)