Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test.sh by using the supplied command in docker-entrypoint.sh #80

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MaddieM4
Copy link

Docker uses a 2-part separation between the ENTRYPOINT command (which is what's always run in docker run) and the CMD command (which is provided as arguments to the ENTRYPOINT script). Right now, test.sh doesn't work because it's attempting to override CMD, but docker-entrypoint.sh is ignoring CMD in favor of a hardcoded call to /usr/sbin/vsftpd.

The fix for this is really easy, as you can see by the patch size! Specify what we were already doing as the CMD and have docker-entrypoint.sh call it. This means when you override CMD like test.sh does, docker-entrypoint.sh respects what you ask for.

@garethflowers
Copy link
Owner

The image was setup exactly like this previously (see #63). However, because of the way vsftpd was handling child process it meant that the container would keep exiting whenever a ftp connection was closed.

Changing to use ENTRYPOINT seemed to fix that issue.

@MaddieM4
Copy link
Author

MaddieM4 commented Jan 29, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants