This commit is contained in:
parent
cf225129a5
commit
fd82f97ac0
|
@ -28,9 +28,9 @@ RUN apt-get update && apt-get install -y \
|
|||
RUN echo "root:rootpass" | chpasswd
|
||||
|
||||
# Tworzenie nowego użytkownika 'user' z hasłem 'pass' i dodanie do grupy sudo
|
||||
RUN useradd -m -s /bin/bash user && \
|
||||
echo "user:pass" | chpasswd && \
|
||||
usermod -aG sudo user
|
||||
#RUN useradd -m -s /bin/bash user && \
|
||||
# echo "user:pass" | chpasswd && \
|
||||
# usermod -aG sudo user
|
||||
|
||||
# Opcjonalnie: Ustawienie domyślnego użytkownika
|
||||
# USER user
|
||||
|
@ -38,3 +38,4 @@ RUN useradd -m -s /bin/bash user && \
|
|||
# Ustawienie domyślnego polecenia
|
||||
CMD ["/bin/bash"]
|
||||
|
||||
|
||||
|
|
2
__vp
2
__vp
|
@ -1,6 +1,6 @@
|
|||
f() {
|
||||
sudo docker run --rm -dit --privileged \
|
||||
-v "$(pwd)/app:/home/user/work" \
|
||||
-v "$(pwd)/../app:/home/user/work" \
|
||||
-p 3333:3333 \
|
||||
--name "$1" deb su - user;
|
||||
};
|
||||
|
|
1
app
1
app
|
@ -1 +0,0 @@
|
|||
Subproject commit db0752d3e05f90f7fd8dda802b2366f3c6942b87
|
Loading…
Reference in New Issue