Install and run yEd in a container. This container (Dockerfile) can run with Docker or Podman.
By default, the container will use Docker. Just run make
, this will build and start the container (using Docker). If you want to use Podman, just run make podman
.
After building the yEd installer should pop up. Accept the agreement and use the default values and paths. Use yed
inside the container to install and/or start yEd, if yEd didn't start automatically.
Press CTRL+D
or use exit
to shut down the container.
- Inside the container: You can save your work in
/home/yed/workspace
- Outside the container: You can access your work in
${GIT-PATH}/docker-yed/workspace
You can specify your own custom workspace directory by passing WORKSPACE=$DIRECTORY as an argument.
Example: make WORKSPACE=/opt
Add one of these examples to your .bashrc (or elsewhere) to start the container and yEd easily.
alias yed='make -C ${GIT-PATH}/docker-yed'
alias yed='make podman -C ${GIT-PATH}/docker-yed'
alias yed='make -C ${GIT-PATH}/docker-yed WORKSPACE=${OWN_WORKSPACE_PATH}'
alias yed='make podman -C ${GIT-PATH}/docker-yed WORKSPACE=${OWN_WORKSPACE_PATH}'
To install yEd simply run yed-install
inside the container, if the installer didn't pop up or you closed it.
Recommendation: Just leave the default values as they are:
- Agreement:
I accept the agreement
(this is not default) - Destination directory:
/home/yed/yEd
- Create symlinks:
/usr/local/bin
- Create a desktop icon:
Yes
(don't care) - Run yEd Graph Editor:
Yes
(don't care)
You can now run yEd directly from the installer or just run yed-run
inside the container shell.
yed-install # install yed
yed-run # run yed
It's a cross-platform application (Linux, Windows, and Mac OS) that can be used to draw diagrams.
You can export diagrams as GIF, JPEG, PNG, EMF, BMP, PDF, EPS, and SVG.
You need to install yEd every time you run the container because the installer script doesn't provide a command line interface.
Error:
Got permission denied while trying to connect to the Docker daemon socket at ...:
Post ...: dial ...: connect: permission denied
Solution (add your user to docker group):
sudo groupadd docker
sudo usermod -aG docker ${USER}
su -s ${USER}
Error:
ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock.
Is the docker daemon running?
Solution (start docker service):
sudo systemctl start docker
sudo systemctl enable docker # optional, docker will now start automatically
Please check this link: https://github.com/mviereck/x11docker
Error:
Starting Installer ...
Authorization required, but no authorization protocol specified
Could not display the GUI. This application needs access to an X Server.
Solution:
xhost +local:root
xhost -local:root # optional, remove x server access after container usage
Error:
File can't be saved (inside yEd)
This is what happens when you use Podman and Docker in alternation.
Solution:
chmod o+w workspace -R
docker images | grep docker-yed # list containers, we only care about docker-yed container(s)
podman images | grep docker-yed # list containers, we only care about docker-yed container(s)
docker image rm docker-yed # by name
docker image rm ${ID} # by ID, alternative option
podman image rm docker-yed # by name
podman image rm ${ID} # by ID, alternative option
docker container stop ${ID}
podman container stop ${ID}