Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.forth > #135531

Re: GForth in Docker.

Path csiph.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From Kragen Javier Sitaker <kragen@canonical.org>
Newsgroups comp.lang.forth
Subject Re: GForth in Docker.
Date Wed, 02 Sep 2026 14:26:10 -0300
Organization Primarily biological and memetic
Lines 29
Message-ID <87o6ef7efh.fsf@debian> (permalink)
References <114tl3v$2fsah$1@dont-email.me> <ndf54bF762U1@mid.individual.net> <0b4d65eb-5cb9-4b9d-9a54-df5f0a99b458@gmail.com> <2026Aug5.083504@mips.complang.tuwien.ac.at>
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
Injection-Date Wed, 02 Sep 2026 17:28:28 +0000 (UTC)
Injection-Info dont-email.me; logging-data="3162053"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/pQge11+XRnn7Ia4LrlsLz"; posting-host="de81ddf0846fce2f7070364d1569cfb9"
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Cancel-Lock sha1:7w5cCIXYVEmF9qCO+tq0pnfx1As= sha1:TzhOFp4Hmd5GJqgBEcOyLU+jBto= sha256:9HQw4RG1Ha7VKgw6hpvgOKwOPL3wUk7n/y5HuNzV81I= sha1:wLCzmSwkm1I0yKF4JqF0mxPD7h8= sha256:NBwC0Zo6dcilFGrSMjdJkpiISkSwG+kZj7hkUMq13WE=
Xref csiph.com comp.lang.forth:135531

Show key headers only | View raw


anton@mips.complang.tuwien.ac.at (Anton Ertl) writes:
> Nick P <nick.268@gmail.com> writes:
>>    sudo docker run -it \
>>     -v "$PWD":/usr/src/myapp \
>>     -w /usr/src/myapp \
>>     forthy42/gforth gforth fac1.fs -e bye
>
> Container technologies like Docker try to isolate the stuff inside the
> container from the outside, in order to protect the outside from
> whatever may go wild inside the container.  (...) if you use Docker,
> you get it and have to tell it where to drop the isolation.

Yes, this is the right answer in general.  Docker creates a little
isolated universe that can’t see the rest of your system, and you have
to explicitly specify what access it has to the rest of the system.
The `-v` flag is the easiest way to do that for the filesystem; `-p`
does it for network ports.

In Docker’s main use cases, this is more to protect the container from
the system than to protect the system from the container — it ensures
that what’s running inside the container doesn’t depend on your system C
library or your system installation of Python or whatever.  This is a
pretty big problem with things like Python: the “it works on my
machine!” problem.

Docker isn’t really intended or suited for interactive applications like
GForth, not really supporting X-Windows, D-Bus, etc.

Kragen

Back to comp.lang.forth | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

GForth in Docker. Nick P <nick.268@gmail.com> - 2026-08-04 22:21 +0100
  Re: GForth in Docker. jkn <jkn+nin@nicorp.co.uk> - 2026-08-04 22:50 +0100
    Re: GForth in Docker. Nick P <nick.268@gmail.com> - 2026-08-04 23:20 +0100
      Re: GForth in Docker. anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2026-08-05 06:35 +0000
        Re: GForth in Docker. Kragen Javier Sitaker <kragen@canonical.org> - 2026-09-02 14:26 -0300
  Re: GForth in Docker. albert@spenarnc.xs4all.nl - 2026-08-05 10:19 +0200
    Re: GForth in Docker. Colin Tree <treecolin@gmail.com> - 2026-08-06 08:47 +1000
      Re: GForth in Docker. anton@mips.complang.tuwien.ac.at (Anton Ertl) - 2026-08-06 05:08 +0000
        Re: GForth in Docker. albert@spenarnc.xs4all.nl - 2026-08-22 16:01 +0200

csiph-web