docker-container

Run docker command on host

▼魔方 西西 提交于 2020-07-04 01:49:26
问题 Can I run docker command on host? I installed aws inside my docker container, now can I somehow use aws command on host (that under the hood will use docker container's aws)? My situation is like that: I have database backups on production host. now I have Jenkins cron job that will take sql file from db container and take it into server folder. Now I also want jenkins to upload this backup file on AWS storage, but on host I have no aws installed, also I don't want to install anything except

Run docker command on host

人走茶凉 提交于 2020-07-04 01:49:20
问题 Can I run docker command on host? I installed aws inside my docker container, now can I somehow use aws command on host (that under the hood will use docker container's aws)? My situation is like that: I have database backups on production host. now I have Jenkins cron job that will take sql file from db container and take it into server folder. Now I also want jenkins to upload this backup file on AWS storage, but on host I have no aws installed, also I don't want to install anything except

How to configure containers in one network to connect to each other (server -> mysql)?

眉间皱痕 提交于 2020-06-23 17:26:25
问题 I have ran ubuntu docker-containers (mysql) and (nodejs server app) on windows docker run -d --network bridge --name own -p 80:3000 own:latest docker run -d --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=12345678 mysql:5 docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 3ce966e43414 own:latest "docker-entrypoint.s…" 5 minutes ago Up 5 minutes 0.0.0.0:80->3000/tcp own ed10cfc93dd5 mysql:5 "docker-entrypoint.s…" 20 minutes ago Up 20 minutes 0.0.0.0:3306->3306/tcp, 33060/tcp

How to configure containers in one network to connect to each other (server -> mysql)?

一个人想着一个人 提交于 2020-06-23 17:23:05
问题 I have ran ubuntu docker-containers (mysql) and (nodejs server app) on windows docker run -d --network bridge --name own -p 80:3000 own:latest docker run -d --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=12345678 mysql:5 docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 3ce966e43414 own:latest "docker-entrypoint.s…" 5 minutes ago Up 5 minutes 0.0.0.0:80->3000/tcp own ed10cfc93dd5 mysql:5 "docker-entrypoint.s…" 20 minutes ago Up 20 minutes 0.0.0.0:3306->3306/tcp, 33060/tcp

Can't access jupyter notebook from docker

孤街醉人 提交于 2020-05-30 07:35:47
问题 I am trying to run a jupyter notebook created in Docker. Firstly I run a container: docker run -p 8888:8888 jupyter/tensorflow-notebook What I get is: [I 19:44:47.140 NotebookApp] Writing notebook server cookie secret to /home/jovyan/.local/share/jupyter/runtime/notebook_cookie_secret [I 19:44:51.731 NotebookApp] JupyterLab extension loaded from /opt/conda/lib/python3.7/site-packages/jupyterlab [I 19:44:51.732 NotebookApp] JupyterLab application directory is /opt/conda/share/jupyter/lab [I 19

Can't access jupyter notebook from docker

雨燕双飞 提交于 2020-05-30 07:35:08
问题 I am trying to run a jupyter notebook created in Docker. Firstly I run a container: docker run -p 8888:8888 jupyter/tensorflow-notebook What I get is: [I 19:44:47.140 NotebookApp] Writing notebook server cookie secret to /home/jovyan/.local/share/jupyter/runtime/notebook_cookie_secret [I 19:44:51.731 NotebookApp] JupyterLab extension loaded from /opt/conda/lib/python3.7/site-packages/jupyterlab [I 19:44:51.732 NotebookApp] JupyterLab application directory is /opt/conda/share/jupyter/lab [I 19

How to use label filter on intermediate containers that get created during build (assuming LABEL is set immediately after FROM command)?

耗尽温柔 提交于 2020-05-17 07:45:09
问题 In the dockerfile, suppose I set a LABEL immediately after the FROM command, then is the label applied to every intermediate container and image generated in the subsequent step? I know that intermediate containers get removed during build after each step. But I am facing an issue where-in some of the intermediate container are not getting removed. This is causing the images created out of these containers (during the build process) to become dangled. I can see the images in docker images and

Problem in running code-server in https secure

…衆ロ難τιáo~ 提交于 2020-05-17 06:23:06
问题 If we run docker run -d -p 8080:8080 sanjayme/vscode-dotnet-core --auth none --cert still we are facing not secure connection. How to solve this? Even we tried something similar to docker \ -v /path/to/certs.crt:/home/coder/cert.crt \ -v /path/to/cert-key.key:/home/coder/cert.key \ -p 8080:8080 \ run codercom/code-server:v2 \ --cert /home/coder/cert.crt --cert-key /home/coder/cert.key the http url is working, but if we browse https dns mapped url it's throwing an error. Check the attachment

Clone github repo to docker container while container creation

杀马特。学长 韩版系。学妹 提交于 2020-05-17 05:45:06
问题 I need to clone code while creating docker container not while building image. How can we achieve this or How can we run commands while creating container. I have used CMD git clone "URL" in docker file but is giving error "Option 'c' is unknown. Ignoring" while running container. 来源: https://stackoverflow.com/questions/61496659/clone-github-repo-to-docker-container-while-container-creation

How is the rootfs size of a docker container decided?

佐手、 提交于 2020-03-19 06:46:22
问题 On one system, the disk size of the Docker container is like this: root@b65c6518f583:/# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/docker-253:0-202764498-b65c6518f5837667e7021971a97aebd382dddca6b3ecf4167472ebe17f16aace 99G 268M 94G 1% / tmpfs 5.8G 0 5.8G 0% /dev shm 64M 0 64M 0% /dev/shm tmpfs 5.8G 0 5.8G 0% /sys/fs/cgroup tmpfs 5.8G 96K 5.8G 1% /run/secrets /dev/mapper/rhel-root 50G 20G 31G 40% /etc/hosts We can see the rootfs size is 99G. While in another system, the disk