xantios / cockpit-docker Goto Github PK
View Code? Open in Web Editor NEWJust a fork
Just a fork
After installing cockpit-docker I get an error for cockpit-docker
When checking the error in the browser I get this
Refused to apply inline style because it violates the following Content Security Policy directive: "default-src 'self' https://xxxx:9090". Either the 'unsafe-inline' keyword, a hash ('sha256-BMIkowAqVEI88ibUJ1NtYB8ByZOuS4MTi73eGoFo2+Q='), or a nonce ('nonce-...') is required to enable inline execution. Note that hashes do not apply to event handlers, style attributes and javascript: navigations unless the 'unsafe-hashes' keyword is present. Note also that 'style-src' was not explicitly set, so 'default-src' is used as a fallback.
Uncaught TypeError: Cannot read property 'text' of null at SiteDialog.setupAdd (contentScriptSiteDialog.js:1) at SiteDialog.setSiteDialogMessage (contentScriptSiteDialog.js:1) at SiteDialog.setup (contentScriptSiteDialog.js:1) at dialog.js:1 at D (dialogs.js:1) at e (dialogs.js:1) at Object.success (dialogs.js:1) at c (jquery-3.6.0.min.js:2) at Object.fireWith [as resolveWith] (jquery-3.6.0.min.js:2) at l (jquery-3.6.0.min.js:2)
Uncaught ReferenceError: jQuery is not defined at Object.jquery (external "jQuery":1) at __webpack_require__ (bootstrap:19) at Module../pkg/docker/containers.js (docker.js:209491) at __webpack_require__ (bootstrap:19) at Object.0 (docker.js:216923) at __webpack_require__ (bootstrap:19) at bootstrap:83 at bootstrap:83 jquery @ external "jQuery":1 __webpack_require__ @ bootstrap:19 ./pkg/docker/containers.js @ docker.js:209491 __webpack_require__ @ bootstrap:19 0 @ docker.js:216923 __webpack_require__ @ bootstrap:19 (anonymous) @ bootstrap:83 (anonymous) @ bootstrap:83
I've got no idea what's wrong.
I have noticed that the docker page is not scrollable - as in there are contents extending beyond the screen, but the page does not offer any abilities to scroll, I can't even select text and drag it down the page to make it move.
Is this affecting anyone else?
I updated my Ubuntu server and I guess Docker might have decided to move on with a new API version. I was mainly wondering if anyone has found a work around besides switching to Podman and going with cockpit-podman.
Error - 400 client version 1.12 is too old. Minimum supported API version is 1.24, please upgrade your client to a newer version
Ubuntu 22.04.3 LTS
Docker version is 25.0.3, build 4debf4,
Docker compose is v2.24.5
Hi, I recently built and installed your docker plugin for cockpit and everything works great, thanks for that. There is only one small issue - I can not scroll the docker page, so some of my containers are out of view. This happens only on this page, all other pages within my cockpit work fine. I know little about JS, so all I tried was looking through the css scheme, but couldn't find anything that would seem suspicious. Any help would be appreciated
NB: I built your plugin on x64 Debian VM, but using it on armhf raspberry pi OS - I believe this should have no effect on the functionality, due to the way the plugins work, but I could be wrong
I ran sudo ./install to install after I did I got this warning
(cockpit-bridge:2173): cockpit-bridge-WARNING **: 15:39:58.521: couldn't open file: /root/.local/share/cockpit/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker: Failed to open file ?/root/.local/share/cockpit/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker/docker?: open() failed: Too many levels of symbolic links
then it shows me a list of apps. Cockpit is not showing docker. What am I doing wrong?
The 3 lines of command is making and linking a DIR.
Then what, I clone this repo in my home folder and do the ./run -f ?
And do I already need cockpit installed, or will this launch cockpit inside a docker?
I am looking to add the container tab to my VPS with Cockpit installed on.
.
I believe latest Cockpit versions use the fonts:
"RedHatText", "Overpass", overpass, helvetica, arial, sans-serif"
while the plugin still uses Helvetica Neue.
cockpit/cockpit-docker $ sudo ./install
Sending build context to Docker daemon 1.805MB
Step 1/4 : FROM node:12-alpine
12-alpine: Pulling from library/node
1a3a062e2a46: Already exists
5c011617ab43: Already exists
eb78b7190c82: Already exists
7c9d06233a93: Already exists
Digest: sha256:5d8b181a0738654bbe659a68879298f8d2d4256685282ee1c2330d97c33e3eee
Status: Downloaded newer image for node:12-alpine
---> 4fa66bcc90de
Step 2/4 : WORKDIR /app
---> Running in 8cd71e9e1fe4
Removing intermediate container 8cd71e9e1fe4
---> cd0a7a8c6fad
Step 3/4 : RUN apk update ; apk add git
---> Running in 0a857d9af763
failed to create endpoint suspicious_lumiere on network bridge: failed to add the host (vethd308777) <=> sandbox (vethc15c1cc) pair interfaces: operation not supported
Error: No such container: cockpit-docker
Unable to find image 'cockpit-docker:latest' locally
docker: Error response from daemon: pull access denied for cockpit-docker, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
===> List of packages, if all went fine this list should container docker
apps Applications /usr/share/cockpit/apps
base1 /usr/share/cockpit/base1
metrics /usr/share/cockpit/metrics
network Networking /usr/share/cockpit/networkmanager
pcp /usr/share/cockpit/pcp
performance /usr/share/cockpit/tuned
shell /usr/share/cockpit/shell
ssh /usr/share/cockpit/ssh
static /usr/share/cockpit/static
storage Storage /usr/share/cockpit/storaged
system Services, Overview, Logs, Terminal /usr/share/cockpit/systemd
updates Software Updates /usr/share/cockpit/packagekit
users Accounts /usr/share/cockpit/users
checksum = 414b50723feb785395b413f5a125ab9e5db2bf9b3b4b1f26099ecfc0583c840e
I have compiled this and moved the dist
into my cockpit directory /usr/share/cockpit
.
However, it is not working with the following error:
Uncaught ReferenceError: jQuery is not defined
at Object.jquery (docker.js:216946)
at __webpack_require__ (docker.js:20)
at Module../pkg/docker/containers.js (docker.js:209491)
at __webpack_require__ (docker.js:20)
at Object.0 (docker.js:216923)
at __webpack_require__ (docker.js:20)
at docker.js:84
at docker.js:87
Looking at the docker/index.html
file, it is expecting a jquery.js
file under ../base1/jquery.js
, but this file doesn't exist in this installation of cockpit.
# grep -n -i jquery docker/index.html -A5 -B5
23- <title translate="yes">Containers</title>
24- <meta charset="utf-8">
25- <meta name="viewport" content="width=device-width, initial-scale=1.0">
26- <link href="../base1/patternfly.css" type="text/css" rel="stylesheet">
27- <link href="docker.css" type="text/css" rel="stylesheet" id="term-style">
28: <script src="../base1/jquery.js"></script>
29- <script src="../base1/cockpit.js"></script>
30- <script src="../*/po.js"></script>
31- <script src="docker.js"></script>
32-</head>
33-<body class="pf-m-redhat-font" hidden>
# ls -lah | grep -i jquery
#
I'm not much of a web developer, any idea how this could be rectified or worked around?
Edit:
cockpit
package:
# yum info cockpit
Last metadata expiration check: 2:29:47 ago on Tue Feb 2 12:20:11 2021.
Installed Packages
Name : cockpit
Version : 235
Release : 1.el8
Architecture : x86_64
Size : 56 k
Source : cockpit-235-1.el8.src.rpm
Repository : @System
From repo : anaconda
Summary : Web Console for Linux servers
URL : https://cockpit-project.org/
License : LGPLv2+
Description : The Cockpit Web Console enables users to administer GNU/Linux servers using a
: web browser.
:
: It offers network configuration, log inspection, diagnostic reports, SELinux
: troubleshooting, interactive command-line sessions, and more.
Environment:
# cat /etc/os-release
NAME="CentOS Stream"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Stream 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_SUPPORT_PRODUCT_VERSION="CentOS Stream"
Hi,
I have installed this in cockpit but is just getting a
Can’t connect to Docker
bad request
Hope you can help?
Thanks
Marinus
I don't use cockpit anymore, if anyone is interesting in fixing this repo up feel free to do so.
I just tried to install this and I received a 404 error trying to retrieve /cockpit/@localhost/base1/patternfly.css
I think that this CSS has been removed from cockpit https://lists.fedorahosted.org/archives/list/[email protected]/thread/2Q6AAQXGI5IE5D7XMTJUIKP3NIS3CIBL/
I'd love to work on a PR for this but am totally swamped atm so at least reporting it here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.