r/docker 1d ago

Docker Container

Hi, maybe can someone help me to run zeppos and zeus in an docker enviroment. I tried running ubuntu and nodejs in dockerfile but i cant start the login. Its not possible to connect host and container.

0 Upvotes

9 comments sorted by

6

u/TBT_TBT 1d ago

You don't containerize an OS, you containerize an application. And you probably don't need to create a Dockerfile yourself, you can just use https://hub.docker.com/ and pull an existing one. Most applications also have instructions how to let them run with a docker compose file.

Keep in mind that Docker container will be set back if newly pulled or updateded if you don't use persistent volumes or shares.

1

u/ben-ba 1d ago

Lxc containers are os containers, but yes docker containers are app containers

1

u/TBT_TBT 14h ago

We are in /r/docker here.

6

u/Own-Perspective4821 1d ago

This is most definitely an XY-Problem.

3

u/niceminus20 1d ago

docker containers are typically ephemeral, with storage mounts for stuff thats not. You would benefit greatly from understanding containerization as a whole before trying to shove an entire os down docker's proverbial throat. its not made for that.

2

u/PossibilityTasty 1d ago

Are you confusing Docker with a VM? There's usually no login, but you can get a shell in the running container with docker exec -ti <container> <shell>. Where <shell> could be bash or sh.

-2

u/serbweb3 1d ago

I am hoping to start from the container shell the browser and have access from the host to the docker.host.

1

u/TBT_TBT 1d ago

Then look for a Docker container for said browser. E.g. https://github.com/linuxserver/docker-chrome