Les Partages de Memiks
Tag cloud
Picture wall
Daily
RSS Feed
  • RSS Feed
  • Daily Feed
  • Weekly Feed
  • Monthly Feed
Filters

Links per page

  • 20 links
  • 50 links
  • 100 links

Filters

Untagged links
page 1 / 2
25 results tagged docker  ✕
Docker - Mycroft AI https://mycroft-ai.gitbook.io/docs/using-mycroft-ai/get-mycroft/docker
Mon Nov 30 12:47:54 2020 archive.org
QRCode
thumbnail

Learn how to install Mycroft for Docker either from a Docker Hub install, or by building the image. Many thanks to Brian Hopkins (@btotharye) for this documentation.

docker Mycroft ai android assistant vocal
Docker Performance Improvement: Tips and Tricks https://stackify.com/docker-performance-improvement-tips-and-tricks/
Mon Apr 20 10:42:06 2020 archive.org
QRCode
thumbnail
docker performance improvement
Dockerizing Android builds | Bright Inventions https://brightinventions.pl/blog/dockerizing-android-builds/
Wed Jan 1 18:56:27 2020 archive.org
QRCode
thumbnail

Docker is a great container platform that helps building a true independence between applications, infrastructure and developers. It provides an isolation which supports building modern continuous integration environments with ease and at low cost.

software development software-development mobile application android build docker
Run GUI app in linux docker container on windows host - DEV Community 👩‍💻👨‍💻 https://dev.to/darksmile92/run-gui-app-in-linux-docker-container-on-windows-host-4kde
Wed Dec 11 09:46:44 2019 archive.org
QRCode
thumbnail
docker windows host graphic interface
Linux Containers on Windows | Microsoft Docs https://docs.microsoft.com/en-us/virtualization/windowscontainers/deploy-containers/linux-containers
Wed Oct 23 09:34:29 2019 archive.org
QRCode
thumbnail

Learn about different ways you can use Hyper-V to run Linux containers on Windows as if they're native.

LCOW linux-containers docker containers windows hyper-v
GitHub - mderasse/rdod: Remote Desktop On Docker https://github.com/mderasse/rdod
Fri Jun 14 19:01:29 2019 archive.org
QRCode
thumbnail

Launch rDoD

1) Set Up your rDoD

rDod can be launch as it but you might want to customize. To do so, a few environment variables are available such as :

  • RESOLUTION: Screen resolution of the desktop initialized by VNC Server (Default: 1920*1080)
  • USE_SSL: Enable/Disable SSL Encryption between VNC Client <-> Server. If set to true, Certificate will be auto-generated at launch (Default: false)
  • VNC_RW_PASSWORD: Password for log in as a Read-Write user. If not set, the password will be auto-generated at launch (Optional)
  • VNC_RO_PASSWORD: Password for log in as a Read-Only user. If not set, the password will be auto-generated at launch (Optional)

If you are using docker-compose you can also edit the docker-compose file to customize rDod

2) Start rDoD

rDod cab be launch by 2 different ways :

a) Docker-Compose

Docker-Compose is the easiest way to launch rDoD. By using it the Home of the rDod user will be persistent.

You can use Docker-Compose to download and launch rDoD by using the following command:

docker-compose up

It's also possible to launch rDoD in "detach" mode by adding the -d parameter:

docker-compose up -d

b) Docker CLI

You can launch rDoD by using the classical Docker CLI. That way permit a better customization but will require to write a longer command line.

docker run -p 5901:5901 -p 5911:5911 mderasse/rdod:latest

Of course you can replace latest by another image tag.

You might also want to have a persistent Home. You can do this by using the parameter -v like :

docker run -p 5901:5901 -p 5911:5911 -v $(pwd)/home:/home/user mderasse/rdod:latest

You might also want to use those parameter :

  • -d : launch the image in "detach" mode
  • -e : set a environment variable. (-e USE_SSL='true')

3) Access to rDoD

rDoD currently provide 2 different ways of access.

VNC

In order to acces to rDoD by using VNC you will have to install the TigerVNC viewer.
You can find the different binary depending of your OS on that link: TigerVNC Viewer

After the installation done you will have to launch the client and connect to :
YOUR_IP:5901

noVNC

noVNC is a HTML5 Client. You can access it directly by using your favorite Web Browser
http://YOUR_IP:5911

Don't forget to change HTTP to HTTPS is USE_SSL is enabled.

Create you own Customized Version

rDoD is made in a way that it's really easy to extend it.
Do to so you will have to create a Dockerfile like the following one:

FROM mderasse/rdod:latest

LABEL maintainer="Matthieu DERASSE <github@derasse.fr>"

# Back to Root
USER 0

# Configure Custom System
COPY ....
RUN ....

# Back to User
USER 1000

Please, take a look at the customs directory, that can be a good source of inspiration. Feel free to share your version by creating a pull Request!

Known Issues

1) noVNC does not handle well all the keyboard key

docker vnc desktop
GitHub - clux/muslrust: Docker environment for building musl based static rust binaries https://github.com/clux/muslrust/
Thu Feb 14 11:06:35 2019 archive.org
QRCode
thumbnail

A plain docker environment for building static binaries compiled with rust and linked against musl instead of glibc. Built nightly on travis.

This is only useful if you require external C dependencies, because otherwise you could do rustup target add x86_64-unknown-linux-musl.

This container comes with a bunch of statically compiled C libraries using musl-gcc so that we can statically link against these as well.

If you already have rustup installed on the machine that should compile, you might consider cross as a more general solution for cross compiling rust binaries.
Usage

Pull and run from a rust project root:

docker pull clux/muslrust
docker run -v $PWD:/volume --rm -t clux/muslrust cargo build

You should have a static executable in the target folder:

ldd target/x86_64-unknown-linux-musl/debug/EXECUTABLE
not a dynamic executable

From there on, you can include it in a blank docker image (because everything you need is included in the binary) and perhaps end up with a 5MB docker blog image.

rust compile docker musl static
multiarch/alpine - Docker Hub https://hub.docker.com/r/multiarch/alpine/
Thu Jan 10 22:40:34 2019 archive.org
QRCode
thumbnail
qemu docker arm x86 amd64
How to Build ARM Docker Images on Intel host | HotBlack Robotics http://www.hotblackrobotics.com/en/blog/2018/01/22/docker-images-arm/
Thu Jan 10 14:18:44 2019 archive.org
QRCode

Build Docker Images for ARM hosts on Intel

docker qemu
Running and building ARM Docker containers in x86 – Own your bits https://ownyourbits.com/2018/06/27/running-and-building-arm-docker-containers-in-x86/
Wed Jan 9 22:30:19 2019 archive.org
QRCode
thumbnail

docker run -v /usr/bin/qemu-arm-static:/usr/bin/qemu-arm-static --rm -ti armhf/alpine

enjoy !

(pratique pour faire de la cross compilation, en fait pas vraiment c'est plus de l'emulation pour compiler...)

docker arm x86 qemu
Docker - Domoticz https://www.domoticz.com/wiki/Docker
Sat Dec 8 00:56:56 2018 archive.org
QRCode
thumbnail

docker run --name=domoticzjosh \
--privileged \
--cidfile="cid" \
-d \
-p 8080:8080 \
-p 6144:6144 \
-t joshuacox/mkdomoticz

domoticz docker
Singularity - Sylabs.io https://www.sylabs.io/singularity/
Tue Aug 21 15:01:24 2018 archive.org
QRCode
thumbnail

Get Singularity Open-Source Singularity Open-Source follows the  “release early, release often” principle and contains the latest and the greatest of all the new code contributed to Singularity. More details in our mission statement. GitHub repository Releases Documentation Join Community Report a bug We are open-source enthusiasts like you! All features, development and advances to our …

docker alternative
GitHub - dockcross/dockcross: Cross compiling toolchains in Docker images https://github.com/dockcross/dockcross
Fri Jul 13 18:23:16 2018 archive.org
QRCode
thumbnail

Cross compiling toolchains in Docker images

docker cross compile
How to get into a docker container? - Stack Overflow https://stackoverflow.com/questions/30172605/how-to-get-into-a-docker-container
Sun May 6 08:21:54 2018 archive.org
QRCode
thumbnail

Et pour être root :

docker exec -it --user root bash

docker bash container
Control and configure Docker with systemd | Docker Documentation https://docs.docker.com/engine/admin/systemd/#httphttps-proxy
Wed Jun 28 17:04:31 2017 archive.org
QRCode
thumbnail

Create a systemd drop-in directory for the docker service:

$ mkdir -p /etc/systemd/system/docker.service.d

Create a file called /etc/systemd/system/docker.service.d/http-proxy.conf that adds the HTTP_PROXY environment variable:

[Service]
Environment="HTTP_PROXY=http://proxy.example.com:80/"

Or, if you are behind an HTTPS proxy server, create a file called /etc/systemd/system/docker.service.d/https-proxy.conf that adds the HTTPS_PROXY environment variable:

[Service]
Environment="HTTPS_PROXY=https://proxy.example.com:443/"

If you have internal Docker registries that you need to contact without proxying you can specify them via the NO_PROXY environment variable:

Environment="HTTP_PROXY=http://proxy.example.com:80/" "NO_PROXY=localhost,127.0.0.1,docker-registry.somecorporation.com"

lush changes:

$ sudo systemctl daemon-reload

Restart Docker:

$ sudo systemctl restart docker

Verify that the configuration has been loaded:

$ systemctl show --property=Environment docker

docker proxy
Utilisation de LXC en mode utilisateur non-privilégié / Wiki / Debian-facile http://debian-facile.org/doc:autres:vm:lxc:mode-utilisateur
Mon Mar 6 23:46:55 2017 archive.org
QRCode
thumbnail

Tutoriel sur l'utilisation de LXC (je teste Docker mais LXC semble plus apte à remplir mes exigences...)

  • https://blog.imirhil.fr/2015/03/11/virtualisation-facile-lxc.html
  • http://connect.ed-diamond.com/GNU-Linux-Magazine/GLMF-159/Virtualisation-basee-sur-les-LinuX-Containers-aka-LXC
  • http://www.objectif-libre.com/fr/blog/2016/09/09/creer-et-utiliser-des-conteneurs-lxc-avec-linventaire-in-memory-dansible/
  • http://www.guiguishow.info/2012/10/30/utiliser-lxc-sur-un-kimsufi/
  • http://tech.novapost.fr/lxc-demystification.html
lxd container docker test tutoriel
Dockerfile reference - Docker https://docs.docker.com/engine/reference/builder/#/add
Thu Mar 2 22:20:57 2017 archive.org
QRCode
thumbnail

Each may contain wildcards and matching will be done using Go’s filepath.Match rules. For example:

ADD hom* /mydir/        # adds all files starting with "hom"
ADD hom?.txt /mydir/    # ? is replaced with any single character, e.g., "home.txt"

The is an absolute path, or a path relative to WORKDIR, into which the source will be copied inside the destination container.

ADD test relativeDir/          # adds "test" to `WORKDIR`/relativeDir/
ADD test /absoluteDir/         # adds "test" to /absoluteDir/

If is a local tar archive in a recognized compression format (identity, gzip, bzip2 or xz) then it is unpacked as a directory. Resources from remote URLs are not decompressed. When a directory is copied or unpacked, it has the same behavior as tar -x, the result is the union of:

  • whatever existed at the destination path and
  • The contents of the source tree, with conflicts resolved in favor of “2.” on a file-by-file basis.
docker add tar bzip file
Docker run reference - Docker https://docs.docker.com/engine/reference/run/
Tue Feb 28 22:17:04 2017 archive.org
QRCode
thumbnail

docker run -a stdin -a stdout -i -t debian-sshd /bin/bash

docker run container bash shell
Commet faire du ménage dans les conteneurs et images docker - Patatos http://patatos.over-blog.com/2016/09/commet-faire-du-menage-dans-les-conteneurs-et-images-docker.html
Thu Feb 23 18:14:46 2017 archive.org
QRCode
thumbnail

Si vous utilisez docker vous avez surement remarqué que l'espace disque utilisé augmente rapidement. Voici quelques règles pour économiser un peu de place sur votre disque.
Supprimer les volumes associés à un conteneur

Lorsqu'on supprime un conteneur penser à utiliser l'option -v qui permet de supprimer les volumes associés à un conteneur.

Pour supprimer tous les conteneurs qui ne tournent pas on peut utiliser la commande suivante:

docker rm -v $(docker ps -aqf status=exited)

Recréé un conteneur est assez rapide du moment que son image est disponible. Ce qui nous amène vers le nettoyage des images inutiles.
Supprimer les images inutiles

J'appelle image "inutile" une image "intermédiaire" qui sert dans la construction d'une image "finale" et qui n'est donc jamais utilisé pour créer un conteneur.

On peut supprimer ces images avec la commande suivante:

docker rmi $(docker images -qf dangling=true)

Souvent indispensable après un docker pull.
Supprimer les volumes orphelins

Un volume orphelin est un volume pour lequel son conteneur associé a été supprimé sans l'option -v. Pour supprimer ces volumes on a la commande suivante:

docker volume rm $(docker volume ls -qf dangling=true)
docker volume image inutile menage
docker - arrêtez d'utiliser des conteneurs data-only https://www.metal3d.org/ticket/docker-arretez-d-utiliser-des-conteneurs-data-only
Thu Feb 16 19:13:45 2017 archive.org
QRCode
thumbnail

Ok, utilisons un volume

Maintenant que vous avez compris le principe, sachez que docker peut vous permettre de créer un volume sans passer par un conteneur. C’est là que je veux en venir !

Prenons un exemple que j’utilise beaucoup, un conteneur mongo dont je ne veux pas perdre les données. J’utilisais, avant, un répertoire perso pour y stocker les données.

Plus tard, j’ai utilisé un conteneur data-only, ce qui fonctionne bien, je ne dis pas le contraire. L’image mongo déclare un volume “/data/db”, donc je n’avais qu’à faire:

docker run --name mongodata -v /data/db -it -d busybox
docker run --rm -it --volumes-from mongodata mongo

Oui, mais c’est bête !

Voilà la meilleure façon de faire:

docker volume create --name mongodata
docker run --rm -it -v mongodata:/data/db mongo

Cette fois, je définis où je monte le volume, et je n’ai qu’un seul conteneur qui tourne: le conteneur mongo. Le volume est local (par défaut) et se trouve ici:

$ docker volume inspect mongodata
[
    {
       "Name": "mongodata",
        "Driver": "local",
        "Mountpoint": "/var/lib/docker/volumes/mongodata/_data"
    }
]

C’est bien plus efficace et ça limite largement le nombre de conteneurs à démarrer. On notera aussi la facilité à retrouver les volumes par leurs noms.

pour aller plus loin: https://docs.docker.com/engine/tutorials/dockervolumes/

docker volume data images
page 1 / 2
4756 links, including 1670 private
Shaarli - The personal, minimalist, super-fast, database free, bookmarking service by the Shaarli community - Theme by kalvn