tanut aran

This is a time when you Docker size is BIG!

Then we need to see inside.


Start your CLI inside the Docker

docker run -it --entrypoint /bin/sh <your_container_name>

It is important to skip entrypoint that will sometimes break the run if you not yet inject any environment.

Investigate space with command

du -sch *

to see the summary of the result

Then the hidden files

du -sh .[^.]*

Got this error after changing machine and docker-compose up

Meaning this might be issue from different Docker version.

Trailing Slash

Found the problem is from trailing slash, so change docker-compose.yml

-      - ./sftp:/home/user-upload/                                                                                                                                                                     +      - ./sftp:/home/user-upload

Change from user-upload/ to user-upload make this work

Hope this help !

Warning: this is not secure at all, only for testing things out.

Step 1: Create User/pass

and also the home directory for this user

sudo useradd my-temp-user
sudo passwd my-temp-user
sudo mkdir /home/my-temp-user// Grant perm
sudo chgrp my-temp-user /home/my-temp-user
sudo chown my-temp-user /home/my-temp-user

Step 2: Enable password login in SSHD

sudo vim /etc/ssh/sshd_config

Looking for this line, change it from no to yes

PasswordAuthentication yes

Then restart it to take effect

sudo systemctl restart sshd

Step 3: Done test login with the new user

ssh my-temp-user@

Bingo now we logged in with the new user