Cbdy

有没有那种,就是那种很棒的,很方便的基于 Docker 的小命令分享

  •  
  •   Cbdy · Nov 4, 2020 · 2660 views
    This topic created in 2032 days ago, the information mentioned may be changed or developed.

    比如、类似这样的

    alias ffmpeg='docker run --rm -v "$PWD:/tmp/workdir" jrottenberg/ffmpeg:4.1 "$@"'
    

    方便日常操作,类似小程序那样即开即用

    5 replies    2020-11-05 09:14:41 +08:00
    no1xsyzy
        1
    no1xsyzy  
       Nov 4, 2020
    但是你还要从 hub 拉镜像不是吗(
    比各发行版的国内源慢啊
    jim9606
        2
    jim9606  
       Nov 5, 2020
    有这需要的应该考虑 snap 和 flatpak,或者 appimage,不过有没有人做这种封装就不知道了。

    @no1xsyzy docker hub 也有很多可用的镜像源了
    initd
        3
    initd  
       Nov 5, 2020
    docker-compose up -d
    initd
        4
    initd  
       Nov 5, 2020
    no1xsyzy
        5
    no1xsyzy  
       Nov 5, 2020
    @jim9606 不过还有就是 docker image 比较大,以及大部分依赖没有(且难以)分层打包(比如 1 依赖 ab,2 依赖 bc,3 依赖 ac,那根本做不出一个无重复的 image 结构)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   867 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 20:20 · PVG 04:20 · LAX 13:20 · JFK 16:20
    ♥ Do have faith in what you're doing.