求助: Docker 运行 autoware, roscore、runtime_manager可启动但无法访问容器内文件

参考https://www.jianshu.com/p/367189d503da
https://www.jianshu.com/p/daa9f634589e
两篇文章,在docker下安装了autoware
并在宿主机下载了rosbag文件,建立共享后启动镜像,在容器中通过命令行可以看到共享的文件。
运行autoware 启动脚本 可建立roscore、runtime_manager但无法访问共享的文件。是ros节点磁盘访问权限的问题吗?求助

使用下面脚本启动的镜像

> #!/bin/sh
> 
> XSOCK=/tmp/.X11-unix
> XAUTH=/home/$USER/.Xauthority
> SHARED_DIR=/home/autoware/shared_dir # 容器共享文件夹
> HOST_DIR=/home/$USER/autoware/shared_dir # 宿主机共享文件夹
> 
> nvidia-docker run \
>     -it --rm \
>     --volume=$XSOCK:$XSOCK:rw \
>     --volume=$XAUTH:$XAUTH:rw \
>     --volume=$HOST_DIR:$SHARED_DIR:rw \
>     --env="XAUTHORITY=${XAUTH}" \
>     --env="DISPLAY=${DISPLAY}" \
>     -u autoware \
>     --privileged -v /dev/bus/usb:/dev/bus/usb \
>     --net=host \
>     autoware/autoware:1.7.0-kinetic

启动后宿主和容器的文件夹截图
图片说明

可以看到文件夹内容相同,共享成功。

使用下面脚本启动autoware

> # boot ros-master
> ${TERMINAL} ${MASTER_DISPLAY_OPTION} ${OPTION_WORKING_DIR}=${MY_PATH} ${OPTION_COMMAND}="bash -c 'source ./devel/setup.bash; roscore'"&
> 
> # boot runtime_manager
> ${TERMINAL} ${RUNMGR_DISPLAY_OPTION} ${OPTION_WORKING_DIR}=${MY_PATH} ${OPTION_COMMAND}="bash -c 'source ./devel/setup.bash; rosrun runtime_manager runtime_manager_dialog.py'"

下图是启动后通过roscore终端访问文件的结果
图片说明

可以看到,没有找到文件

下图是runtime_manager图形界面访问文件的结果
图片说明

图中shared_dir文件夹是空的,没有文件

1个回答

nvidia-docker run \
-it --rm \
-v $XSOCK:$XSOCK \
-v $XAUTH:$XAUTH \
-v $HOST_DIR:$SHARED_DIR \
--env="XAUTHORITY=${XAUTH}" \
--env="DISPLAY=${DISPLAY}" \
-u autoware \
--privileged -v /dev/bus/usb:/dev/bus/usb \
--net=host \
autoware/autoware:1.7.0-kinetic

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
win10专业版docker中运行splash出现QStandardPaths: XDG_RUNTIME_DIR not set, 怎么解决呢?

错误详情:C:\Users\51117>docker run -p 8050:8050 scrapinghub/splash 2019-11-03 09:15:28+0000 [-] Log opened. 2019-11-03 09:15:28.293008 [-] Xvfb is started: ['Xvfb', ':1814961844', '-screen', '0', '1024x768x24', '-nolisten', 'tcp'] QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' 2019-11-03 09:15:29.152735 [-] Splash version: 3.4 [1:1:1103/091529.166087:ERROR:zygote_host_impl_linux.cc(89)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

启动docker映像时出现standard_init_linux.go:178错误

<div class="post-text" itemprop="text"> <p>I built the docker image using following Dockerfile with Drone build server.</p> <pre><code>FROM centurylink/ca-certs WORKDIR /app ADD VERSION . ADD conf/ conf/ ADD resources/ resources/ ADD app app # Expose the application on port 8080 EXPOSE 80 ENTRYPOINT ["./app"] </code></pre> <p>However it results in the exception <code>standard_init_linux.go:178: exec user process caused "no such file or directory"</code></p> <p>Docker host is MacOS. And I'm trying to execute this image in Amazon EC2 linux instance.</p> <p>Following is the drone build script. (<code>.drone.yml</code>)</p> <pre><code>workspace: base: /go path: src/github.com/me/app pipeline: build: image: instrumentisto/glide commands: - glide install - export GOOS=linux - export GOARCH=amd64 - go build - go test -v when: event: [ push, tag ] publish: image: plugins/ecr repo: 111.dkr.ecr.eu-central-1.amazonaws.com/app registry: 111.dkr.ecr.eu-central-1.amazonaws.com dockerfile: Dockerfile tag: ${DRONE_TAG} default_tags: false default_branch: development secrets: [ ecr_access_key, ecr_secret_key, ecr_region ] when: event: tag status: success ref: refs/tags/v1* </code></pre> <p>I've came across similar issues in SO where they suggest to add a shebang line in the script. However in my case the entry point is not a script rather a golang executable.</p> </div>

DOCKER:ERR_EMPTY_RESPONSE - Mac

<div class="post-text" itemprop="text"> <p>I'm new to Docker and just made my first steps. I wanted to play a little bit with docker and was about configuring a Dockerfile for yii:</p> <pre><code>FROM php:7.2.3-apache RUN curl -sS https://getcomposer.org/installer | php &amp;&amp; \ mv composer.phar /usr/local/bin/composer RUN apt-get update &amp;&amp; apt-get install -y git unzip zip EXPOSE 8080 RUN composer create-project --prefer-dist yiisoft/yii2-app-basic test </code></pre> <p>Then I run the container with:</p> <pre><code>docker container run -d --name test -p 8080:8080 test-yii </code></pre> <p>When I go to <code>localhost:8080</code> i got an <code>ERR_EMPTY_RESPONSE</code>. This is the network result of <code>docker container inspect</code>:</p> <pre><code>"Ports": { "80/tcp": null, "8080/tcp": [ { "HostIp": "0.0.0.0", "HostPort": "8080" } ] }, </code></pre> <p>I appreciate every hint that helps me to solve this issue!</p> <p>Edit: I forgot to mention that i connect to the container and then run <code>php yii serve</code> to test if Yii runs and this results in the above described problem.</p> </div>

无法连接docker mysql - php_network_getaddresses

<div class="post-text" itemprop="text"> <p>I created a Docker and worked well. But when I tried to use database with Laravel. It returns error that couldnt find it.</p> <p>Here's my docker file. And errors that i get. And "docker ps" result.</p> <pre><code>version: '3.1' services: redis: image: "redis:alpine" ports: - 6379/tcp networks: spordev: ipv4_address: 172.25.0.2 db: image: mysql command: --default-authentication-plugin=mysql_native_password restart: always environment: MYSQL_ROOT_PASSWORD: 11235 MYSQL_DATABASE: spor MYSQL_USER: spor MYSQL_PASSWORD: 11235 networks: spordev: ipv4_address: 172.25.0.3 web: build: . ports: - "3000:80" volumes: - .:/var/www/html networks: spordev: ipv4_address: 172.25.0.4 networks: spordev: driver: bridge ipam: driver: default config: - subnet: 172.25.0.0/16 </code></pre> <p>Here's my ".env" file.</p> <pre><code>APP_NAME=Spor APP_ENV=local APP_KEY=base64:cs9fOYhNYy4Jtp3VurVN3XWN7qXk0yxWlLh3cPuIU20= APP_DEBUG=true APP_URL=http://localhost LOG_CHANNEL=stack DB_CONNECTION=mysql DB_HOST=db DB_PORT=3306 DB_DATABASE=spor DB_USERNAME=root DB_PASSWORD=11235 BROADCAST_DRIVER=log CACHE_DRIVER=redis QUEUE_CONNECTION=sync SESSION_DRIVER=redis SESSION_LIFETIME=120 REDIS_CLIENT=predis REDIS_HOST=redis REDIS_PASSWORD=null REDIS_PORT=6379 MAIL_DRIVER=smtp MAIL_HOST= MAIL_PORT=587 MAIL_USERNAME=null MAIL_PASSWORD=null MAIL_ENCRYPTION=tls MAIL_FROM_ADDRESS= MAIL_FROM_NAME= AWS_ACCESS_KEY_ID= AWS_SECRET_ACCESS_KEY= AWS_DEFAULT_REGION=us-east-1 AWS_BUCKET= PUSHER_APP_ID= PUSHER_APP_KEY= PUSHER_APP_SECRET= PUSHER_APP_CLUSTER=mt1 MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}" MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}" </code></pre> <p>and here's my "docker ps" result.</p> <pre><code>CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 3e745f1eb06a mysql "docker-entrypoint.s…" 14 minutes ago Up 2 minutes 3306/tcp, 33060/tcp spor_db_1 502f3f77f24c spor_web "/usr/bin/supervisor…" 14 minutes ago Up 2 minutes 9000/tcp, 0.0.0.0:3000-&gt;80/tcp spor_web_1 55bbd344b18a redis:alpine "docker-entrypoint.s…" 14 minutes ago Up 2 minutes 0.0.0.0:32769-&gt;6379/tcp spor_redis_1 </code></pre> <p>"SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known (SQL: select * from information_schema.tables where table_schema = spor and table_name = migrations and table_type = 'BASE TABLE')"</p> <p>" Exception trace:</p> <p>1 PDOException::("PDO::__construct(): php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known") /Users/tufancagkansokmen/works/spor/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70</p> <p>2 PDO::__construct("mysql:host=db;port=3306;dbname=spor", "spor", "11235", []) /Users/tufancagkansokmen/works/spor/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70 "</p> <p>What could be problem about my database connection?</p> </div>

警告:mysqli :: __ construct():( HY000 / 2002):没有这样的文件或目录

<div class="post-text" itemprop="text"> <p>我花了几天的时间才想办法解决这个问题... 我在运行Mojave(10.14.3)的Mac OS上设置了Apache Web服务器(版本2.4.34),并安装了当前版本的MySQL Community Server(8.0.15)。 正如我所能确定的(从命令行),两者都运行良好。 我已经安装了PHP 7.1.23。 当我使用以下代码创建.php文件并将其放在我的Sites目录中,然后在Safari中转到http://localhost/~dave/hello.php时,出现此错误::</p> <blockquote> <p>"Warning: mysqli::__construct(): (HY000/2002): No such file or directory in /Users/dave/Sites/hello.php on line 7 Connection failed: No such file or directory".</p> </blockquote> <p>hello.php中的代码:</p> <pre><code>&lt;?php $servername = "localhost"; $username = "dave"; $password = "*****"; //Create connection $conn = new mysqli($servername, $username, $password); //Check connection if ($conn-&gt;connect_error) { die("Connection failed: " . $conn-&gt;connect_error); } echo "Connected successfully"; ?&gt; </code></pre> <p>我已经尝试了所有我能想到的一切,包括其他两篇类似的文章中的建议(这一篇:我的数据库用户存在,但是我仍然得到(HY000 / 2002):没有这样的文件或目录,而这一篇:PHP警告: mysqli :: construct():(HY000 / 2002):没有这样的文件或目录(Debian GNU / Linux 9),并且我无法使用php连接到MySQl。 特别是,我检查了php info页面,并给出了mysqli的套接字为 <code>/tmp/mysql.sock</code>。 我尝试通过添加每个套接字(代替空值)来更改php.ini.default文件,但两个都不起作用(仍然产生相同的错误)。 我以为2002 MySQL套接字错误可能是问题所在,所以我做了一个符号链接is:</p> <pre><code>sudo mkdir /var/mysql sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock </code></pre> <p>但是这样做只会产生一个新的错误:</p> <blockquote> <p>Warning: mysqli::__construct(): The server requested authentication method unknown to the client [caching_sha2_password] in /Users/dave/Sites/hello.php on line 7</p> <p>Warning: mysqli::__construct(): (HY000/2054): The server requested authentication method unknown to the client in /Users/dave/Sites/hello.php on line 7 Connection failed: The server requested authentication method unknown to the client</p> </blockquote> <p>所以我删除了符号链接...并返回到原始错误。 我还尝试使用IP地址127.0.0.1以及其他问题线程建议的“ localhost:3306”替换“ localhost”。 这里也没有任何作用。 请帮助我,我对这种计算机/网页设计的使用是陌生的,我没有明显的选择(谷歌/可理解)。s.</p> </div>

ubuntu下,docker启动问题,在使用service docker start之后提示 Starting Docker: docker 但是并没有启动成功

ubuntu下,docker启动问题,在使用service docker start之后提示 Starting Docker: docker 但是并没有启动成功。在docker version里面只有client 没有service ![图片说明](https://img-ask.csdn.net/upload/202005/22/1590119129_126325.png) 在使用各种命令的时候出现Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? 我已经启动了docker 为什么还会出现这种问题? 我去查看了docker.sock 里面是空的。 怎么解决该问题!!!

docker-CodeIgniter file_get_contents无法打开流:连接被拒绝

<div class="post-text" itemprop="text"> <p>I'm new to the docker-code ignitor world. Issue is I cannot use <code>file_get_contents</code> inside the app as it keeps throwing the error:</p> <blockquote> <p>file_get_contents(<a href="http://127.0.0.1:5000/index.php/lucky_api/get_population" rel="nofollow noreferrer">http://127.0.0.1:5000/index.php/lucky_api/get_population</a>): failed to open stream: Connection refused</p> </blockquote> <p>If I hard code the docker container IP address then it works. But I need to use the base_url so that I don't have to manually change the IP address every time I do docker-compose up. </p> <p>My docker-compose.yml looks like this:</p> <pre><code>version: '2' services: lucky: extends: file: common.yml service: lucky image: docker-lucky:local ports: - "5000:80" volumes: - ~/dev/LUCKY:/var/www/html oracle-db: extends: file: common.yml service: oracle-db image: oracle/database2:11.2.0.2-xe shm_size: '1gb' ports: - "1521:1521" environment: - ORACLE_PWD=12345 volumes: - ~/dev/oracle-db/data:/u01/app/oracle/oradata - ~/dev/oracle-db/dumpFiles:/docker-entrypoint-initdb.d/startup </code></pre> </div>

standard_init_linux.go:190:运行Go二进制文件时,exec用户进程导致“ exec格式错误”

<div class="post-text" itemprop="text"> <p>我正在尝试用我的 Go 二进制文件创建一个用作数据库迁移器的容器。但是,如果我运行二进制文件,虽然它能完美地工作,但是我很难把它放到容器中并在 docker-compose 堆栈中运行它。</p> <p>下面是我的Dockerfile:</p> <pre><code>FROM golang:1.11 AS build_base WORKDIR /app ENV GO111MODULE=on # We want to populate the module cache based on the go.{mod,sum} files. COPY go.mod . COPY go.sum . RUN go mod download FROM build_base AS binary_builder # Here we copy the rest of the source code COPY . . RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build #In this last stage, we start from a fresh Alpine image, to reduce the image size and not ship the Go compiler in our production artifacts. FROM alpine AS database-migrator # We add the certificates to be able to verify remote instances RUN apk add ca-certificates COPY --from=binary_builder /app /app ENTRYPOINT ["/app/binary-name"] </code></pre> <p>当我运行 docker-compose 堆栈时,MySQL 数据库得到了正确的设置,但是我在数据库迁移器容器的日志中收到了这个错误:</p> <blockquote> <p>data-migrator_1 | standard_init_linux.go:190: exec user process caused "exec format error"</p> </blockquote> </div>

Amphp Artax bug

<div class="post-text" itemprop="text"> <p>i used following very basic example of amphp/artax</p> <p>$URL can be any url e.g. <a href="http://www.yahoo.com" rel="nofollow noreferrer">http://www.yahoo.com</a></p> <pre><code>$promises[$URI] = Amp\call(function () use ($client, $URI) { // "yield" inside a coroutine awaits the resolution of the promise // returned from Client::request(). The generator is then continued. $response = yield $client-&gt;request($URI); // Same for the body here. Yielding an Amp\ByteStream\Message // buffers the entire message. $body = yield $response-&gt;getStatus(); return $body; }); $responses = Amp\Promise\wait(Amp\Promise\all($promises)); </code></pre> <p>and getting following error</p> <pre><code> Fatal error: Uncaught Amp\Socket\CryptoException: Crypto negotiation failed: stream_socket_enable_crypto(): SSL operation failed with code 1. OpenSSL Error messages: error:1414D172:SSL routines:tls12_check_peer_sigalg:wrong signature type in /var/www/html/vendor/amphp/socket/src/Internal/functions.php:118 Stack trace: #0 /var/www/html/vendor/amphp/amp/lib/Loop/NativeDriver.php(172): Amp\Socket\Internal\{closure}('am', Resource id #293, Object(Amp\Deferred)) #1 /var/www/html/vendor/amphp/amp/lib/Loop/NativeDriver.php(68): Amp\Loop\NativeDriver-&gt;selectStreams(Array, Array, 4.782) #2 /var/www/html/vendor/amphp/amp/lib/Loop/Driver.php(130): Amp\Loop\NativeDriver-&gt;dispatch(true) #3 /var/www/html/vendor/amphp/amp/lib/Loop/Driver.php(70): Amp\Loop\Driver-&gt;tick() #4 /var/www/html/vendor/amphp/amp/lib/Loop.php(76): Amp\Loop\Driver-&gt;run() #5 /var/www/html/vendor/amphp/amp/lib/functions.php(158): Amp\Loop::run(Object(Closure)) #6 /var/www/html/parseradvance.php(77): Amp\Promise\wait(Object(Amp\Internal\PrivatePromise)) #7 {main} t in /var/www/html/vendor/amphp/socket/src/Internal/functions.php on line 118 </code></pre> <p>can anybody help me out the issue I had already set cainfo=curl.pem </p> <p>thanks in advance</p> </div>

docker konradkleine/docker-registry-frontend:v2 运行之后点击repository报错

### docker konradkleine/docker-registry-frontend:v2 运行之后访问报错GET http://localhost:8082/v2/_catalog?n=&last= 503 (Service Unavailable) 启动容器配置本地镜像ip配置未生效, docekr-compose.yml 内容 ```yml version: '3.1' services: frontend: image: konradkleine/docker-registry-frontend:v2 restart: always container_name: registry-frontend ports: - 8082:80 volumes: - ./certs/frontend.crt:/etc/apache2/server.crt:ro - ./certs/frontend.key:/etc/apache2/server.key:ro environment: - ENV_DOCKER_REGISTRY_HOST=192.169.0.109 - ENV_DOCKER_REGISTRY_PORT=5000 ```

正在获取流错误:流ID 1; 在容器中的Golang中使用Google Search API时发生PROTOCOL_ERROR

<div class="post-text" itemprop="text"> <p>When using a Go program inside of a docker swarm service I get a 400 status and an error message <code>stream ID 1; PROTOCOL_ERROR</code> when I call a <code>client.Get(url)</code> ) I get a 200 and the results when I <code>go run *.go</code>. I use a "Bundle of CA Root Certificates" inside of the container from Mozilla. Any Help Appreciated. My code is below.</p> <pre><code>client := &amp;http.Client{Timeout: 30 * time.Second, Transport: &amp;http.Transport{ DisableCompression: true, DisableKeepAlives: true, }} r, err := client.Get(url) if err != nil { return err } defer r.Body.Close() bodyBytes, err := ioutil.ReadAll(r.Body) if err != nil { fmt.Println(url, err) // The Google Search url and err: stream error: stream ID 1; PROTOCOL_ERROR return err } fmt.Println(r.StatusCode, string(bodyBytes)) return json.NewDecoder(r.Body).Decode(target) </code></pre> <p>My Dockerfile:</p> <pre><code>FROM scratch ADD ca-certificates.crt /etc/ssl/certs/ ENV MODE=production ADD main / CMD ["/main"] </code></pre> <p>Edit: Output from Debug</p> <pre><code>mycontainer.1.jdl70gy26uds@moby | 2017/12/19 12:50:16 http2: Transport creating client conn 0xc42030b340 to 172.217.2.234:443 mycontainer.1.jdl70gy26uds@moby | 2017/12/19 12:50:16 http2: Framer 0xc4204862a0: wrote SETTINGS len=18, settings: ENABLE_PUSH=0, INITIAL_WINDOW_SIZE=4194304, MAX_HEADER_LIST_SIZE=10485760 mycontainer.1.jdl70gy26uds@moby | 2017/12/19 12:50:16 http2: Framer 0xc4204862a0: wrote WINDOW_UPDATE len=4 (conn) incr=1073741824 mycontainer.1.jdl70gy26uds@moby | 2017/12/19 12:50:16 http2: Transport encoding header ":authority" = "www.googleapis.com" mycontainer.1.jdl70gy26uds@moby | 2017/12/19 12:50:16 http2: Transport encoding header ":method" = "GET" mycontainer.1.jdl70gy26uds@moby | 2017/12/19 12:50:16 http2: Transport encoding header ":path" = "/customsearch/v1?key=hidingmykey&amp;cx=hidingmycx&amp;q=liquid+nitrogen&amp;num=10&amp;start=1" mycontainer.1.jdl70gy26uds@moby | 2017/12/19 12:50:16 http2: Transport encoding header ":scheme" = "https" mycontainer.1.jdl70gy26uds@moby | 2017/12/19 12:50:16 http2: Transport encoding header "user-agent" = "Go-http-client/2.0" mycontainer.1.jdl70gy26uds@moby | 2017/12/19 12:50:16 http2: Framer 0xc4204862a0: wrote HEADERS flags=END_STREAM|END_HEADERS stream=1 len=140 mycontainer.1.jdl70gy26uds@moby | 2017/12/19 12:50:16 http2: Framer 0xc4204862a0: read SETTINGS len=18, settings: MAX_CONCURRENT_STREAMS=100, INITIAL_WINDOW_SIZE=1048576, MAX_HEADER_LIST_SIZE=16384 mycontainer.1.jdl70gy26uds@moby | 2017/12/19 12:50:16 http2: Transport received SETTINGS len=18, settings: MAX_CONCURRENT_STREAMS=100, INITIAL_WINDOW_SIZE=1048576, MAX_HEADER_LIST_SIZE=16384 mycontainer.1.jdl70gy26uds@moby | 2017/12/19 12:50:16 http2: Framer 0xc4204862a0: wrote SETTINGS flags=ACK len=0 mycontainer.1.jdl70gy26uds@moby | 2017/12/19 12:50:16 http2: Framer 0xc4204862a0: read WINDOW_UPDATE len=4 (conn) incr=983041 mycontainer.1.jdl70gy26uds@moby | 2017/12/19 12:50:16 http2: Transport received WINDOW_UPDATE len=4 (conn) incr=983041 mycontainer.1.jdl70gy26uds@moby | 2017/12/19 12:50:16 http2: Framer 0xc4204862a0: read SETTINGS flags=ACK len=0 mycontainer.1.jdl70gy26uds@moby | 2017/12/19 12:50:16 http2: Transport received SETTINGS flags=ACK len=0 mycontainer.1.jdl70gy26uds@moby | 2017/12/19 12:50:16 http2: Framer 0xc4204862a0: read HEADERS flags=END_HEADERS stream=1 len=72 mycontainer.1.jdl70gy26uds@moby | 2017/12/19 12:50:16 http2: decoded hpack field header field ":status" = "400" mycontainer.1.jdl70gy26uds@moby | 2017/12/19 12:50:16 http2: decoded hpack field header field "content-type" = "text/html; charset=UTF-8" mycontainer.1.jdl70gy26uds@moby | 2017/12/19 12:50:16 http2: decoded hpack field header field "referrer-policy" = "no-referrer" mycontainer.1.jdl70gy26uds@moby | 2017/12/19 12:50:16 http2: decoded hpack field header field "content-length" = "1555" mycontainer.1.jdl70gy26uds@moby | 2017/12/19 12:50:16 http2: decoded hpack field header field "date" = "Tue, 19 Dec 2017 12:50:17 GMT" mycontainer.1.jdl70gy26uds@moby | 2017/12/19 12:50:16 http2: Transport received HEADERS flags=END_HEADERS stream=1 len=72 mycontainer.1.jdl70gy26uds@moby | 2017/12/19 12:50:16 http2: Framer 0xc4204862a0: read RST_STREAM stream=1 len=4 ErrCode=PROTOCOL_ERROR mycontainer.1.jdl70gy26uds@moby | 2017/12/19 12:50:16 http2: Transport received RST_STREAM stream=1 len=4 ErrCode=PROTOCOL_ERROR mycontainer.1.jdl70gy26uds@moby | 2017/12/19 12:50:16 http2: Framer 0xc4204862a0: wrote RST_STREAM stream=1 len=4 ErrCode=CANCEL </code></pre> </div>

standard_init_linux.go:190:exec用户进程使用go basic Web应用程序导致“无此文件或目录” Docker

<div class="post-text" itemprop="text"> <p>The very basic web app is created in Go</p> <pre><code>package main import( "fmt" "net/http" "os" ) func hostHandler(w http.ResponseWriter, r *http.Request){ name, err :=os.Hostname() if err != nil { panic(err) } fmt.Fprintf(w, "&lt;h1&gt;HOSTNAME: %s&lt;/h1&gt;&lt;br&gt;",name) fmt.Fprintf(w, "&lt;h1&gt;ENVIRONMENT VARS: &lt;/h1&gt;&lt;br&gt;") fmt.Fprintf(w, "&lt;ul&gt;") for _, evar := range os.Environ(){ fmt.Fprintf(w, "&lt;li&gt;%s&lt;/li&gt;",evar) } fmt.Fprintf(w, "&lt;/ul&gt;") } func rootHandler(w http.ResponseWriter, r *http.Request){ fmt.Fprintf(w, "&lt;h1&gt;Awesome site in Go!&lt;/h1&gt;&lt;br&gt;") fmt.Fprintf(w, "&lt;a href='/host/'&gt;Host info&lt;/a&gt;&lt;br&gt;") } func main() { http.HandleFunc("/", rootHandler) http.HandleFunc("/host/", hostHandler) http.ListenAndServe(":8080", nil) } </code></pre> <p>Docker File for it</p> <pre><code>FROM scratch WORKDIR /home/ubuntu/go COPY webapp / EXPOSE 8080 CMD ["/webapp"] </code></pre> <p>The image is built successfully </p> <pre><code>ubuntu@ip-172-31-32-125:~/go/src/hello$ docker build -t "webapp" . Sending build context to Docker daemon 6.152MB Step 1/5 : FROM scratch ---&gt; Step 2/5 : WORKDIR /home/ubuntu/go ---&gt; Using cache ---&gt; 8810a06c58c7 Step 3/5 : COPY webapp / ---&gt; Using cache ---&gt; d75222363d3a Step 4/5 : EXPOSE 8080 ---&gt; Using cache ---&gt; 45de0853de8e Step 5/5 : CMD ["/webapp"] ---&gt; Using cache ---&gt; e9f9031f3632 Successfully built e9f9031f3632 Successfully tagged webapp:latest </code></pre> <p>But when i run the docker its show error.</p> <pre><code>ubuntu@ip-172-31-32-125:~/go/src/hello$ docker run webapp standard_init_linux.go:190: exec user process caused "no such file or directory" </code></pre> <p>Please guide what is the issue, I am new to docker and go.</p> <p>Environment-related information</p> <pre><code>ubuntu@ip-172-31-32-125:~/go/src/hello$ ls Dockerfile webapp ubuntu@ip-172-31-32-125:~/go/src/hello$ echo $GOPATH /home/ubuntu/go </code></pre> <p>Code was compiled with <strong>go build webapp.go</strong> command</p> </div>

使用docker build可以很好地构建映像,但是stat / GO / src / main:docker-compose不会遇到此类文件或目录

<div class="post-text" itemprop="text"> <p>I have a Dockerfile which I can successfully build an image from:</p> <pre><code>FROM iron/go:dev RUN mkdir /app COPY src/main/main.go /app/. # Set an env var that matches your github repo name, replace treeder/dockergo here with your repo name ENV SRC_DIR=/app # Add the source code: ADD . $SRC_DIR # Build it: RUN go get goji.io RUN go get gopkg.in/mgo.v2 RUN cd $SRC_DIR; go build -o main ENTRYPOINT ["/app/main"] </code></pre> <p>However, when I attempt to build the following docker-compose.yml file:</p> <pre><code>version: "3.3" services: api: build: ./api expose: - '8080' container_name: 'api' ports: - "8082:8080" depends_on: - db networks: - api-net db: build: ./db expose: - '27017' container_name: 'mongo' ports: - "27017:27017" networks: - api-net networks: api-net: driver: bridge </code></pre> <p>I get:</p> <blockquote> <p>Removing api mongo is up-to-date Recreating</p> <p>532e3cf66460_carsupermarket_api_1 ... error</p> <p>ERROR: for 532e3cf66460_carsupermarket_api_1 Cannot start service api: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"/GO/src/main\": stat /GO/src/main: no such file or directory": unknown</p> <p>ERROR: for api Cannot start service api: OCI runtime create failed: container_linux.go:348: starting container process caused "exec: \"/GO/src/main\": stat /GO/src/main: no such file or directory": unknown ERROR: Encountered errors while bringing up the project.</p> </blockquote> <p>I suspect that docker-compose is introducing some nuance when it comes to directory build paths, however, I'm at a loss as to why my image is building from the docker file when using <code>docker build .</code>, but failing when I try to incorporate this into docker-compose.</p> <p>Can someone point me in the right direction as to what I am doing wrong?</p> </div>

docker-php-ext-install: command not found

centos7 系统 的docker容器里面安装php扩展遇到了个纠结好几天的问题, ``` [root@localhost]#docker exec -it php72 bash root@9adf6d7117e0:/# docker-php-ext-install pdo pdo_mysql bash: docker-php-ext-install: command not found ``` bash: docker-php-ext-install: command not found这个问题,百度查了 都没有人遇到过这个问题,无奈发帖麻烦一下csdn的大神们帮忙一下了 1、系统centos7、centos6.8 安装的docker 阿里镜像源或者其他都尝试过了,都没有docker-php-ext-install 2、我有在自己公司的imac电脑装过docker是有docker-php-ext-install的,难道只有个别php镜像有包含docker-php-ext-install 这个东西吗? 那我们pull镜像之前 如何得知他是有包含docker-php-ext-install的 这中间是不是有啥规律或者潜规则

kolla安装单节点openstack rocky版本过程中报错。

kolla-ansible prechecks -i /openstack/kolla-deploy/all-in-one验证部署状态 ,在验证前期准备这一过程中,报了如下错误: ``` TASK [prechecks : Checking docker SDK version] ****************************************** fatal: [localhost]: FAILED! => {"changed": false, "cmd": ["/usr/bin/python", "-c", "import docker; print docker.__version__"], "delta": "0:00:00.456509", "end": "2020-03-03 11:00:50.188186", "failed_when_result": true, "rc": 0, "start": "2020-03-03 11:00:49.731677", "stderr": "", "stderr_lines": [], "stdout": "1.10.6", "stdout_lines": ["1.10.6"]} fatal: [allinone]: FAILED! => {"changed": false, "cmd": ["/usr/bin/python", "-c", "import docker; print docker.__version__"], "delta": "0:00:00.368353", "end": "2020-03-03 11:00:50.167966", "failed_when_result": true, "rc": 0, "start": "2020-03-03 11:00:49.799613", "stderr": "", "stderr_lines": [], "stdout": "1.10.6", "stdout_lines": ["1.10.6"]} ``` 一开始百度到的解决办法是,kolla版本与docker-python版本不兼容。于是我把docker-python版本需要升级到高版本的,但是升级了依旧是报这个错误。不知道是什么原因,太难了

Docker nginx&fpm:我的nginx错误404

<div class="post-text" itemprop="text"> <p>I try to run a php application with fpm for <a href="https://github.com/ellakcy/docker-moodle/tree/dev" rel="nofollow noreferrer">this</a> project. And I am trying to make the nginx image to run the fpm based solution. My <code>docker-compose.yml</code> is:</p> <pre class="lang-yml prettyprint-override"><code>version: '2' services: # apache based images # A base image for apache - based moodle builds moodle_apache_base: build: context: . dockerfile: dockerfiles/apache/Dockerfile_base image: ellakcy/moodle:apache_base # Mysql running variant moodle_mysql_db: image: mysql environment: MYSQL_RANDOM_ROOT_PASSWORD: "yes" MYSQL_ONETIME_PASSWORD: "yes" MYSQL_DATABASE: "${MOODLE_DB_NAME}" MYSQL_USER: '${MOODLE_MYSQL_USER}' MYSQL_PASSWORD: '${MOODLE_MYSQL_PASSWORD}' moodle_mysql: build: context: . dockerfile: dockerfiles/apache/Dockerfile_mysql image: ellakcy/moodle:mysql_maria_apache links: - "moodle_mysql_db:moodle_db" - "moodle_apache_base" ports: - "6080:80" environment: MOODLE_DB_HOST: "moodle_mysql_db" MOODLE_DB_NAME: "${MOODLE_DB_NAME}" MOODLE_DB_USER: '${MOODLE_MYSQL_USER}' MOODLE_DB_PASSWORD: "${MOODLE_MYSQL_PASSWORD}" MOODLE_ADMIN: "${MOODLE_ADMIN}" MOODLE_ADMIN_PASSWORD: "${MOODLE_ADMIN_PASSWORD}" MOODLE_URL: "http://0.0.0.0:6080" # postgresql running variant moodle_psql_db: image: postgres environment: POSTGRES_DB: "${MOODLE_DB_NAME}" POSTGRES_USER: '${MOODLE_MYSQL_USER}' POSTGRES_PASSWORD: '${MOODLE_MYSQL_PASSWORD}' moodle_psql: build: context: . dockerfile: dockerfiles/apache/Dockerfile_postgrtesql image: ellakcy/moodle:postgresql_apache links: - "moodle_psql_db:moodle_db" - "moodle_apache_base" ports: - "6082:80" environment: MOODLE_DB_HOST: "moodle_psql_db" MOODLE_DB_NAME: "${MOODLE_DB_NAME}" MOODLE_DB_USER: '${MOODLE_MYSQL_USER}' MOODLE_DB_PASSWORD: "${MOODLE_MYSQL_PASSWORD}" MOODLE_ADMIN: "${MOODLE_ADMIN}" MOODLE_ADMIN_PASSWORD: "${MOODLE_ADMIN_PASSWORD}" MOODLE_URL: "http://0.0.0.0:6082" # Testing mariadb support moodle_maria_db: image: mariadb environment: MYSQL_RANDOM_ROOT_PASSWORD: "yes" MYSQL_ONETIME_PASSWORD: "yes" MYSQL_DATABASE: "${MOODLE_DB_NAME}" MYSQL_USER: '${MOODLE_MYSQL_USER}' MYSQL_PASSWORD: '${MOODLE_MYSQL_PASSWORD}' moodle_maria: image: ellakcy/moodle:mysql_maria_apache links: - "moodle_mysql" - "moodle_maria_db:moodle_db" ports: - "6081:80" environment: MOODLE_DB_HOST: "moodle_maria_db" MOODLE_DB_NAME: "${MOODLE_DB_NAME}" MOODLE_DB_USER: '${MOODLE_MYSQL_USER}' MOODLE_DB_PASSWORD: "${MOODLE_MYSQL_PASSWORD}" MOODLE_ADMIN: "${MOODLE_ADMIN}" MOODLE_ADMIN_PASSWORD: "${MOODLE_ADMIN_PASSWORD}" MOODLE_URL: "http://0.0.0.0:6081" #Alpine fpm based images #Basic alpine fpm image alpine_fpm_base: build: context: . dockerfile: dockerfiles/fpm_alpine/Dockerfile_base image: ellakcy/moodle:alpine_fpm_base moodle_mysql_alpine_db: image: mysql environment: MYSQL_RANDOM_ROOT_PASSWORD: "yes" MYSQL_ONETIME_PASSWORD: "yes" MYSQL_DATABASE: "${MOODLE_DB_NAME}" MYSQL_USER: '${MOODLE_MYSQL_USER}' MYSQL_PASSWORD: '${MOODLE_MYSQL_PASSWORD}' # Mysql Enabled image nginx: image: nginx:alpine ports: - "7070:80" volumes: - './conf/nginx/nginx.conf:/etc/nginx/nginx.conf:ro' links: - 'moodle_mysql_alpine' volumes_from: - 'moodle_mysql_alpine' moodle_mysql_alpine: build: context: . dockerfile: dockerfiles/fpm_alpine/Dockerfile_mysql image: ellakcy/moodle:mysql_maria_fpm_alpine links: - "moodle_mysql_alpine_db:moodle_db" - "alpine_fpm_base" environment: MOODLE_DB_HOST: "moodle_mysql_alpine_db" MOODLE_DB_NAME: "${MOODLE_DB_NAME}" MOODLE_DB_USER: '${MOODLE_MYSQL_USER}' MOODLE_DB_PASSWORD: "${MOODLE_MYSQL_PASSWORD}" MOODLE_ADMIN: "${MOODLE_ADMIN}" MOODLE_ADMIN_PASSWORD: "${MOODLE_ADMIN_PASSWORD}" MOODLE_URL: "http://0.0.0.0:7070/moodle_mysql" </code></pre> <p>And the nginx configuration is:</p> <pre><code>events { worker_connections 768; } http { include /etc/nginx/mime.types; default_type application/octet-stream; charset utf-8; gzip on; gzip_disable "msie6"; client_max_body_size 10000M; server { listen 80; root /var/www/www; index index.php; location / { try_files $uri $uri/ =404; } location ~ \.php$ { fastcgi_param GATEWAY_INTERFACE CGI/1.1; fastcgi_param SERVER_SOFTWARE nginx; fastcgi_param QUERY_STRING $query_string; fastcgi_param REQUEST_METHOD $request_method; fastcgi_param CONTENT_TYPE $content_type; fastcgi_param CONTENT_LENGTH $content_length; fastcgi_param DOCUMENT_ROOT $document_root; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_NAME $fastcgi_script_name; fastcgi_param REQUEST_URI $request_uri; fastcgi_param DOCUMENT_URI $document_uri; fastcgi_param SERVER_PROTOCOL $server_protocol; fastcgi_param REMOTE_ADDR $remote_addr; fastcgi_param REMOTE_PORT $remote_port; fastcgi_param SERVER_ADDR $server_addr; fastcgi_param SERVER_PORT $server_port; fastcgi_param SERVER_NAME $server_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_read_timeout 600; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_intercept_errors on; fastcgi_index index.php; fastcgi_pass moodle_mysql_alpine:9000; } } } </code></pre> <p>But regardless what I've tried to do is useless I cannot make my <code>moodle_mysql_alpine</code> to get served via nginx. Do you fellows have an Idea how I can make it to get served? Also keep in minf that I do not care to keep volumes in my local filesysytem bevcause this file is intended to build and run the images just to upload them to an image repository.</p> </div>

如何在Docker容器中安装PHP的mod_rewrite模块?

<div class="post-text" itemprop="text"> <p>docker-compose.yml</p> <pre><code>version: "3.7" services: php: build: './php/' volumes: - ./public_html/www/:/var/www/html/ apache: build: './apache/' depends_on: - php - mysql ports: - "8080:80" volumes: - ./public_html/www/:/var/www/html/ #- ./log:/var/log/apache2 mysql: image: mysql:5.6.40 ports: - "3306:3306" environment: - MYSQL_DATABASE=el-cigarette - MYSQL_ROOT_PASSWORD=root phpmyadmin: image: phpmyadmin/phpmyadmin links: - mysql environment: PMA_HOST: mysql PMA_PORT: 3306 ports: - '8081:80' php/Dockerfile FROM php:7.0-apache MAINTAINER Webgriffe Srl &lt;support@webgriffe.com&gt; RUN docker-php-ext-install mysqli &amp;&amp; a2enmod rewrite apache/demo.apache.conf ServerName localhost LoadModule deflate_module /usr/local/apache2/modules/mod_deflate.so LoadModule proxy_module /usr/local/apache2/modules/mod_proxy.so LoadModule proxy_fcgi_module /usr/local/apache2/modules/mod_proxy_fcgi.so &lt;VirtualHost *:80&gt; # Proxy .php requests to port 9000 of the php-fpm container ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://php:9000/var/www/html/$1 DocumentRoot /var/www/html/ DirectoryIndex index.php &lt;Directory /var/www/html/&gt; Options All AllowOverride All Order allow,deny Allow from all Require all granted &lt;/Directory&gt; # Send apache logs to stdout and stderr CustomLog /var/www/1 common ErrorLog /var/www/2 &lt;/VirtualHost&gt; </code></pre> <p>I inputted next commands docker-compose build docker-compose up -d</p> <p>And I get that output Creating docker-local2_mysql_1 ... done Creating docker-local2_php_1 ... done Creating docker-local2_phpmyadmin_1 ... done Creating docker-local2_apache_1 ... done</p> <pre><code>Farther I write this docker exec -it docker-local2_php_1 sh # php -m But I didn't see mod_rewrite module [PHP Modules] Core ctype curl date dom fileinfo filter ftp hash iconv json libxml mbstring mysqli mysqlnd openssl pcre PDO pdo_sqlite Phar posix readline Reflection session SimpleXML SPL sqlite3 standard tokenizer xml xmlreader xmlwriter zlib [Zend Modules] </code></pre> <p>My .htaccess file doesn't work Where did I go wrong? And what I need do to fix this trouble?</p> </div>

使用Docker运行Laravel artisan命令时连接被拒绝

<div class="post-text" itemprop="text"> <p>I'm running Laravel 5.4 in Docker. This is my <code>docker-compose.yml</code> file:</p> <pre><code>version: '2' services: app: container_name: laravel_app image: webdevops/php-apache-dev:ubuntu-16.04 links: - mysql depends_on: - mysql ports: - 8888:80 volumes: - .:/app environment: docker: 'true' WEB_DOCUMENT_ROOT: '/app/public' WEB_NO_CACHE_PATTERN: '\.(.*)$$' working_dir: '/app' mysql: image: mariadb:latest ports: - 8889:80 environment: MYSQL_ROOT_PASSWORD: 'dev' MYSQL_DATABASE: 'dev' MYSQL_USER: 'dev' MYSQL_PASSWORD: 'dev' </code></pre> <p>This is the relevant part of my <code>.env</code> file:</p> <pre><code>DB_CONNECTION=mysql DB_HOST=mysql DB_PORT=8889 DB_DATABASE=dev DB_USERNAME=dev DB_PASSWORD=dev </code></pre> <p>I am able to see the Laravel welcome page - that side of things works. But when I run <code>php artisan migrate</code> I get this error:</p> <blockquote> <p>SQLSTATE[HY000] [2002] Connection refused (SQL: select * from information_schema.tables where table_schema = dev and table_name = migrations)</p> </blockquote> <p>I have tried fiddling with the <code>host</code> and <code>port</code> parameters in the <code>.env</code> file.</p> </div>

mac 安装docker以后无法使用命令行

mac 安装docker以后无法使用命令行 -bash: docker: command not found

4小时玩转微信小程序——基础入门与微信支付实战

这是一个门针对零基础学员学习微信小程序开发的视频教学课程。课程采用腾讯官方文档作为教程的唯一技术资料来源。杜绝网络上质量良莠不齐的资料给学员学习带来的障碍。 视频课程按照开发工具的下载、安装、使用、程序结构、视图层、逻辑层、微信小程序等几个部分组织课程,详细讲解整个小程序的开发过程

Python可以这样学(第四季:数据分析与科学计算可视化)

董付国老师系列教材《Python程序设计(第2版)》(ISBN:9787302436515)、《Python可以这样学》(ISBN:9787302456469)配套视频,在教材基础上又增加了大量内容,通过实例讲解numpy、scipy、pandas、statistics、matplotlib等标准库和扩展库用法。

组成原理课程设计(实现机器数的真值还原等功能)

实现机器数的真值还原(定点小数)、定点小数的单符号位补码加减运算、定点小数的补码乘法运算和浮点数的加减运算。

javaWeb图书馆管理系统源码mysql版本

系统介绍 图书馆管理系统主要的目的是实现图书馆的信息化管理。图书馆的主要业务就是新书的借阅和归还,因此系统最核心的功能便是实现图书的借阅和归还。此外,还需要提供图书的信息查询、读者图书借阅情况的查询等

土豆浏览器

土豆浏览器可以用来看各种搞笑、电影、电视剧视频

Java面试题大全(2020版)

发现网上很多Java面试题都没有答案,所以花了很长时间搜集整理出来了这套Java面试题大全,希望对大家有帮助哈~ 本套Java面试题大全,全的不能再全,哈哈~ 一、Java 基础 1. JDK 和 JRE 有什么区别? JDK:Java Development Kit 的简称,java 开发工具包,提供了 java 的开发环境和运行环境。 JRE:Java Runtime Environ...

Java8零基础入门视频教程

这门课程基于主流的java8平台,由浅入深的详细讲解了java SE的开发技术,可以使java方向的入门学员,快速扎实的掌握java开发技术!

Java基础知识面试题(2020最新版)

文章目录Java概述何为编程什么是Javajdk1.5之后的三大版本JVM、JRE和JDK的关系什么是跨平台性?原理是什么Java语言有哪些特点什么是字节码?采用字节码的最大好处是什么什么是Java程序的主类?应用程序和小程序的主类有何不同?Java应用程序与小程序之间有那些差别?Java和C++的区别Oracle JDK 和 OpenJDK 的对比基础语法数据类型Java有哪些数据类型switc...

TTP229触摸代码以及触摸返回值处理

自己总结的ttp229触摸代码,触摸代码以及触摸按键处理

网络工程师小白入门--【思科CCNA、华为HCNA等网络工程师认证】

本课程适合CCNA或HCNA网络小白同志,高手请绕道,可以直接学习进价课程。通过本预科课程的学习,为学习网络工程师、思科CCNA、华为HCNA这些认证打下坚实的基础! 重要!思科认证2020年2月24日起,已启用新版认证和考试,包括题库都会更新,由于疫情原因,请关注官网和本地考点信息。题库网络上很容易下载到。

深度学习原理+项目实战+算法详解+主流框架(套餐)

深度学习系列课程从深度学习基础知识点开始讲解一步步进入神经网络的世界再到卷积和递归神经网络,详解各大经典网络架构。实战部分选择当下最火爆深度学习框架PyTorch与Tensorflow/Keras,全程实战演示框架核心使用与建模方法。项目实战部分选择计算机视觉与自然语言处理领域经典项目,从零开始详解算法原理,debug模式逐行代码解读。适合准备就业和转行的同学们加入学习! 建议按照下列课程顺序来进行学习 (1)掌握深度学习必备经典网络架构 (2)深度框架实战方法 (3)计算机视觉与自然语言处理项目实战。(按照课程排列顺序即可)

java jdk 8 帮助文档 中文 文档 chm 谷歌翻译

JDK1.8 API 中文谷歌翻译版 java帮助文档 JDK API java 帮助文档 谷歌翻译 JDK1.8 API 中文 谷歌翻译版 java帮助文档 Java最新帮助文档 本帮助文档是使用谷

Ubuntu18.04安装教程

Ubuntu18.04.1安装一、准备工作1.下载Ubuntu18.04.1 LTS2.制作U盘启动盘3.准备 Ubuntu18.04.1 的硬盘空间二、安装Ubuntu18.04.1三、安装后的一些工作1.安装输入法2.更换软件源四、双系统如何卸载Ubuntu18.04.1新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列...

快速排序---(面试碰到过好几次)

原理:    快速排序,说白了就是给基准数据找其正确索引位置的过程.    如下图所示,假设最开始的基准数据为数组第一个元素23,则首先用一个临时变量去存储基准数据,即tmp=23;然后分别从数组的两端扫描数组,设两个指示标志:low指向起始位置,high指向末尾.    首先从后半部分开始,如果扫描到的值大于基准数据就让high减1,如果发现有元素比该基准数据的值小(如上图中18&amp;lt...

手把手实现Java图书管理系统(附源码)

【超实用课程内容】 本课程演示的是一套基于Java的SSM框架实现的图书管理系统,主要针对计算机相关专业的正在做毕设的学生与需要项目实战练习的java人群。详细介绍了图书管理系统的实现,包括:环境搭建、系统业务、技术实现、项目运行、功能演示、系统扩展等,以通俗易懂的方式,手把手的带你从零开始运行本套图书管理系统,该项目附带全部源码可作为毕设使用。 【课程如何观看?】 PC端:https://edu.csdn.net/course/detail/27513 移动端:CSDN 学院APP(注意不是CSDN APP哦) 本课程为录播课,课程2年有效观看时长,大家可以抓紧时间学习后一起讨论哦~ 【学员专享增值服务】 源码开放 课件、课程案例代码完全开放给你,你可以根据所学知识,自行修改、优化 下载方式:电脑登录https://edu.csdn.net/course/detail/27513,点击右下方课程资料、代码、课件等打包下载

HTML期末大作业

这是我自己做的HTML期末大作业,花了很多时间,稍加修改就可以作为自己的作业了,而且也可以作为学习参考

Python数据挖掘简易入门

&nbsp; &nbsp; &nbsp; &nbsp; 本课程为Python数据挖掘方向的入门课程,课程主要以真实数据为基础,详细介绍数据挖掘入门的流程和使用Python实现pandas与numpy在数据挖掘方向的运用,并深入学习如何运用scikit-learn调用常用的数据挖掘算法解决数据挖掘问题,为进一步深入学习数据挖掘打下扎实的基础。

极简JAVA学习营第四期(报名以后加助教微信:eduxy-1)

想学好JAVA必须要报两万的培训班吗? Java大神勿入 如果你: 零基础想学JAVA却不知道从何入手 看了一堆书和视频却还是连JAVA的环境都搭建不起来 囊中羞涩面对两万起的JAVA培训班不忍直视 在职没有每天大块的时间专门学习JAVA 那么恭喜你找到组织了,在这里有: 1. 一群志同道合立志学好JAVA的同学一起学习讨论JAVA 2. 灵活机动的学习时间完成特定学习任务+每日编程实战练习 3. 热心助人的助教和讲师及时帮你解决问题,不按时完成作业小心助教老师的家访哦 上一张图看看前辈的感悟: &nbsp; &nbsp; 大家一定迫不及待想知道什么是极简JAVA学习营了吧,下面就来给大家说道说道: 什么是极简JAVA学习营? 1. 针对Java小白或者初级Java学习者; 2. 利用9天时间,每天1个小时时间; 3.通过 每日作业 / 组队PK / 助教答疑 / 实战编程 / 项目答辩 / 社群讨论 / 趣味知识抢答等方式让学员爱上学习编程 , 最终实现能独立开发一个基于控制台的‘库存管理系统’ 的学习模式 极简JAVA学习营是怎么学习的? &nbsp; 如何报名? 只要购买了极简JAVA一:JAVA入门就算报名成功! &nbsp;本期为第四期极简JAVA学习营,我们来看看往期学员的学习状态: 作业看这里~ &nbsp; 助教的作业报告是不是很专业 不交作业打屁屁 助教答疑是不是很用心 &nbsp; 有奖抢答大家玩的很嗨啊 &nbsp; &nbsp; 项目答辩终于开始啦 &nbsp; 优秀者的获奖感言 &nbsp; 这是答辩项目的效果 &nbsp; &nbsp; 这么细致的服务,这么好的氛围,这样的学习效果,需要多少钱呢? 不要1999,不要199,不要99,只要9.9 是的你没听错,只要9.9以上所有就都属于你了 如果你: 1、&nbsp;想学JAVA没有基础 2、&nbsp;想学JAVA没有整块的时间 3、&nbsp;想学JAVA没有足够的预算 还等什么?赶紧报名吧,抓紧抢位,本期只招300人,错过只有等时间待定的下一期了 &nbsp; 报名请加小助手微信:eduxy-1 &nbsp; &nbsp;

C++语言基础视频教程

C++语言基础视频培训课程:本课与主讲者在大学开出的程序设计课程直接对接,准确把握知识点,注重教学视频与实践体系的结合,帮助初学者有效学习。本教程详细介绍C++语言中的封装、数据隐藏、继承、多态的实现等入门知识;主要包括类的声明、对象定义、构造函数和析构函数、运算符重载、继承和派生、多态性实现等。 课程需要有C语言程序设计的基础(可以利用本人开出的《C语言与程序设计》系列课学习)。学习者能够通过实践的方式,学会利用C++语言解决问题,具备进一步学习利用C++开发应用程序的基础。

UnityLicence

UnityLicence

软件测试2小时入门

本课程内容系统、全面、简洁、通俗易懂,通过2个多小时的介绍,让大家对软件测试有个系统的理解和认识,具备基本的软件测试理论基础。 主要内容分为5个部分: 1 软件测试概述,了解测试是什么、测试的对象、原则、流程、方法、模型;&nbsp; 2.常用的黑盒测试用例设计方法及示例演示;&nbsp; 3 常用白盒测试用例设计方法及示例演示;&nbsp; 4.自动化测试优缺点、使用范围及示例‘;&nbsp; 5.测试经验谈。

YOLOv3目标检测实战:训练自己的数据集

YOLOv3是一种基于深度学习的端到端实时目标检测方法,以速度快见长。本课程将手把手地教大家使用labelImg标注和使用YOLOv3训练自己的数据集。课程分为三个小项目:足球目标检测(单目标检测)、梅西目标检测(单目标检测)、足球和梅西同时目标检测(两目标检测)。 本课程的YOLOv3使用Darknet,在Ubuntu系统上做项目演示。包括:安装Darknet、给自己的数据集打标签、整理自己的数据集、修改配置文件、训练自己的数据集、测试训练出的网络模型、性能统计(mAP计算和画出PR曲线)和先验框聚类。 Darknet是使用C语言实现的轻型开源深度学习框架,依赖少,可移植性好,值得深入探究。 除本课程《YOLOv3目标检测实战:训练自己的数据集》外,本人推出了有关YOLOv3目标检测的系列课程,请持续关注该系列的其它课程视频,包括: 《YOLOv3目标检测实战:交通标志识别》 《YOLOv3目标检测:原理与源码解析》 《YOLOv3目标检测:网络模型改进方法》 敬请关注并选择学习!

Python数据分析师-实战系列

系列课程主要包括Python数据分析必备工具包,数据分析案例实战,核心算法实战与企业级数据分析与建模解决方案实战,建议大家按照系列课程阶段顺序进行学习。所有数据集均为企业收集的真实数据集,整体风格以实战为导向,通俗讲解Python数据分析核心技巧与实战解决方案。

YOLOv3目标检测实战系列课程

《YOLOv3目标检测实战系列课程》旨在帮助大家掌握YOLOv3目标检测的训练、原理、源码与网络模型改进方法。 本课程的YOLOv3使用原作darknet(c语言编写),在Ubuntu系统上做项目演示。 本系列课程包括三门课: (1)《YOLOv3目标检测实战:训练自己的数据集》 包括:安装darknet、给自己的数据集打标签、整理自己的数据集、修改配置文件、训练自己的数据集、测试训练出的网络模型、性能统计(mAP计算和画出PR曲线)和先验框聚类。 (2)《YOLOv3目标检测:原理与源码解析》讲解YOLOv1、YOLOv2、YOLOv3的原理、程序流程并解析各层的源码。 (3)《YOLOv3目标检测:网络模型改进方法》讲解YOLOv3的改进方法,包括改进1:不显示指定类别目标的方法 (增加功能) ;改进2:合并BN层到卷积层 (加快推理速度) ; 改进3:使用GIoU指标和损失函数 (提高检测精度) ;改进4:tiny YOLOv3 (简化网络模型)并介绍 AlexeyAB/darknet项目。

超详细MySQL安装及基本使用教程

一、下载MySQL 首先,去数据库的官网http://www.mysql.com下载MySQL。 点击进入后的首页如下:  然后点击downloads,community,选择MySQL Community Server。如下图:  滑到下面,找到Recommended Download,然后点击go to download page。如下图:  点击download进入下载页面选择No...

一学即懂的计算机视觉(第一季)

图像处理和计算机视觉的课程大家已经看过很多,但总有“听不透”,“用不了”的感觉。课程致力于创建人人都能听的懂的计算机视觉,通过生动、细腻的讲解配合实战演练,让学生真正学懂、用会。 【超实用课程内容】 课程内容分为三篇,包括视觉系统构成,图像处理基础,特征提取与描述,运动跟踪,位姿估计,三维重构等内容。课程理论与实战结合,注重教学内容的可视化和工程实践,为人工智能视觉研发及算法工程师等相关高薪职位就业打下坚实基础。 【课程如何观看?】 PC端:https://edu.csdn.net/course/detail/26281 移动端:CSDN 学院APP(注意不是CSDN APP哦) 本课程为录播课,课程2年有效观看时长,但是大家可以抓紧时间学习后一起讨论哦~ 【学员专享增值服务】 源码开放 课件、课程案例代码完全开放给你,你可以根据所学知识,自行修改、优化 下载方式:电脑登录https://edu.csdn.net/course/detail/26281,点击右下方课程资料、代码、课件等打包下载

董付国老师Python全栈学习优惠套餐

购买套餐的朋友可以关注微信公众号“Python小屋”,上传付款截图,然后领取董老师任意图书1本。

爬取妹子图片(简单入门)

安装第三方请求库 requests 被网站禁止了访问 原因是我们是Python过来的 重新给一段 可能还是存在用不了,使用网页的 编写代码 上面注意看匹配内容 User-Agent:请求对象 AppleWebKit:请求内核 Chrome浏览器 //请求网页 import requests import re //正则表达式 就是去不规则的网页里面提取有规律的信息 headers = { 'User-Agent':'存放浏览器里面的' } response = requests.get

web网页制作期末大作业

分享思维,改变世界. web网页制作,期末大作业. 所用技术:html css javascript 分享所学所得

技术大佬:我去,你写的 switch 语句也太老土了吧

昨天早上通过远程的方式 review 了两名新来同事的代码,大部分代码都写得很漂亮,严谨的同时注释也很到位,这令我非常满意。但当我看到他们当中有一个人写的 switch 语句时,还是忍不住破口大骂:“我擦,小王,你丫写的 switch 语句也太老土了吧!” 来看看小王写的代码吧,看完不要骂我装逼啊。 private static String createPlayer(PlayerTypes p...

相关热词 c#跨线程停止timer c#批量写入sql数据库 c# 自动安装浏览器 c#语言基础考试题 c# 偏移量打印是什么 c# 绘制曲线图 c#框体中的退出函数 c# 按钮透明背景 c# idl 混编出错 c#在位置0处没有任何行
立即提问