[Discussion] What are the best practices for security when exposing docker containers to the internet?

Discussion about Docker
Locked
User avatar
shabzone
Posts: 13
Joined: 29 Apr 2025, 01:50
United States of America

[Discussion] What are the best practices for security when exposing docker containers to the internet?

Post by shabzone »

Looking to host my own photo service and was thinking about security. Even though SPC is set up, docker still has access to the filesystem and network and runs as root. If the container has mounts to my fs that would expose everything if there was an attack, correct?
User avatar
OrionXie
TM Support
Posts: 151
Joined: 14 Apr 2025, 18:30
Saudi Arabia

Re: [Discussion] What are the best practices for security when exposing docker containers to the internet?

Post by OrionXie »

shabzone wrote: 21 May 2025, 23:07
I think so. 1. You may need to search for and use relevant commands to configure Docker account or access restrictions;
2. Alternatively, you can use our application software Photos to host your photos. We hope it can help you and have a pleasant day.
To contact our team, please send email to following addresses. "(at)" = "@"
Technical team: support(at)terra-master.com
Service team: service(at)terra-master.com
User avatar
shabzone
Posts: 13
Joined: 29 Apr 2025, 01:50
United States of America

Re: [Discussion] What are the best practices for security when exposing docker containers to the internet?

Post by shabzone »

Where can I find more documentation and tech specs for photos? Thanks
User avatar
OrionXie
TM Support
Posts: 151
Joined: 14 Apr 2025, 18:30
Saudi Arabia

Re: [Discussion] What are the best practices for security when exposing docker containers to the internet?

Post by OrionXie »

shabzone wrote: 22 May 2025, 20:39
The following is an explanation related to Photos for your reference.
https://toshelp.terra-master.com/web/#/en/Terra_Photos
To contact our team, please send email to following addresses. "(at)" = "@"
Technical team: support(at)terra-master.com
Service team: service(at)terra-master.com
User avatar
Aarona
Posts: 2
Joined: 28 Apr 2025, 11:16
United States of America

Re: [Discussion] What are the best practices for security when exposing docker containers to the internet?

Post by Aarona »

What are the potential risks of running Docker containers as root? How can these risks be mitigated to enhance security?
Car drive madmaster
User avatar
CursaYang
TM Support
Posts: 740
Joined: 06 Jan 2025, 16:34
China

Re: [Discussion] What are the best practices for security when exposing docker containers to the internet?

Post by CursaYang »

If a process within a container gains root privileges, it may affect the security of the host machine or other containers.

It is advisable to run containers using non-root users. Limit the network permissions and mounted file systems of the container to prevent access to sensitive parts of the host machine.
To contact our team, please send email to following addresses, remember to replace (at) with @

Technical team: support(at)terra-master.com(for technical support)
Service team: service(at)terra-master.com(for purchasing, return, replacement, RMA service)
Locked

Return to “Docker”